aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Outland/TempestKeep
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2015-12-07 20:06:02 +0100
committerMitchesD <majklprofik@seznam.cz>2016-01-15 20:34:27 +0100
commit2f1bd93c9e943e584bcd576261da200eec91747f (patch)
tree954fdcb524341c892f9646e7c36ecaacc69830d1 /src/server/scripts/Outland/TempestKeep
parenta0719b75f33a81b3258008a4f0e9959bdae1e5d9 (diff)
Core/Unit: Add Unit::KillSelf() overload
Add Unit::KillSelf() function as overload of Unit::Kill(this) . Use KillSelf() whenever the killer and the victim are the same to clearly state the Unit is going to kill itself. (cherry picked from commit 3267c90102068ed88c0bd7146ae747fe8ba44771) # Conflicts: # src/server/game/AI/SmartScripts/SmartScript.cpp
Diffstat (limited to 'src/server/scripts/Outland/TempestKeep')
-rw-r--r--src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp
index e4e380db5b3..85737740b13 100644
--- a/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp
@@ -1286,7 +1286,7 @@ class npc_kael_flamestrike : public CreatureScript
DoCast(me, SPELL_FLAME_STRIKE_DMG);
}
else
- me->Kill(me);
+ me->KillSelf();
KillSelf = true;
Timer = 1000;