From fd6167cf66d3acf56f11bdcfac0d395e33c9a242 Mon Sep 17 00:00:00 2001 From: joschiwald Date: Mon, 23 Dec 2013 23:55:15 +0100 Subject: Scripts: - cleanup obsidian sanctum script - prevent yelling texts if non player died in some scripts --- src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/EasternKingdoms') diff --git a/src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp b/src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp index 526daaffee1..f436b3c89ab 100644 --- a/src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp +++ b/src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp @@ -126,9 +126,10 @@ class boss_akilzon : public CreatureScript _JustDied(); } - void KilledUnit(Unit* /*victim*/) OVERRIDE + void KilledUnit(Unit* who) OVERRIDE { - Talk(SAY_KILL); + if (who->GetTypeId() == TYPEID_PLAYER) + Talk(SAY_KILL); } void SetWeather(uint32 weather, float grade) -- cgit v1.2.3