Core/Script: Code style and some rewriting.
JustDied(Unit* Killer) -> JustDied(Unit* killer) JustDied(Unit* /*Killer*/) -> JustDied(Unit* /*killer*/) JustDied(Unit* /*unit*/) -> JustDied(Unit* /*killer*/) JustDied(Unit* /*slayer*/)) -> JustDied(Unit* /*killer*/) JustDied(Unit* /*victim*/) -> JustDied(Unit* /*killer*/) JustDied(Unit* victim) -> JustDied(Unit* killer) JustDied(Unit* /*who*/) -> JustDied(Unit* /*killer*/) JustDied(Unit* who) -> JustDied(Unit* killer) JustDied(Unit*) -> JustDied(Unit* /*killer*/) Signed-off-by: Gyx <[email protected]>
This commit is contained in:
@@ -121,7 +121,7 @@ class boss_broggok : public CreatureScript
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*who*/)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (instance)
|
||||
{
|
||||
|
||||
+3
-3
@@ -185,7 +185,7 @@ class boss_kelidan_the_breaker : public CreatureScript
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DIE, me);
|
||||
|
||||
@@ -326,10 +326,10 @@ class mob_shadowmoon_channeler : public CreatureScript
|
||||
DoStartMovement(who);
|
||||
}
|
||||
|
||||
void JustDied(Unit* Killer)
|
||||
void JustDied(Unit* killer)
|
||||
{
|
||||
if (Creature* Kelidan = me->FindNearestCreature(ENTRY_KELIDAN, 100))
|
||||
CAST_AI(boss_kelidan_the_breaker::boss_kelidan_the_breakerAI, Kelidan->AI())->ChannelerDied(Killer);
|
||||
CAST_AI(boss_kelidan_the_breaker::boss_kelidan_the_breakerAI, Kelidan->AI())->ChannelerDied(killer);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
|
||||
@@ -94,7 +94,7 @@ class boss_the_maker : public CreatureScript
|
||||
DoScriptText(RAND(SAY_KILL_1, SAY_KILL_2), me);
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DIE, me);
|
||||
|
||||
|
||||
+1
-1
@@ -113,7 +113,7 @@ class boss_omor_the_unscarred : public CreatureScript
|
||||
++SummonedCount;
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DIE, me);
|
||||
}
|
||||
|
||||
+4
-4
@@ -236,9 +236,9 @@ class boss_vazruden : public CreatureScript
|
||||
DoScriptText(RAND(SAY_KILL_1, SAY_KILL_2), me);
|
||||
}
|
||||
|
||||
void JustDied(Unit* who)
|
||||
void JustDied(Unit* killer)
|
||||
{
|
||||
if (who && who != me)
|
||||
if (killer && killer != me)
|
||||
DoScriptText(SAY_DIE, me);
|
||||
}
|
||||
|
||||
@@ -480,10 +480,10 @@ class mob_hellfire_sentry : public CreatureScript
|
||||
|
||||
void EnterCombat(Unit* /*who*/) {}
|
||||
|
||||
void JustDied(Unit* who)
|
||||
void JustDied(Unit* killer)
|
||||
{
|
||||
if (Creature* herald = me->FindNearestCreature(ENTRY_VAZRUDEN_HERALD, 150))
|
||||
CAST_AI(boss_vazruden_the_herald::boss_vazruden_the_heraldAI, herald->AI())->SentryDownBy(who);
|
||||
CAST_AI(boss_vazruden_the_herald::boss_vazruden_the_heraldAI, herald->AI())->SentryDownBy(killer);
|
||||
}
|
||||
|
||||
void UpdateAI(const uint32 diff)
|
||||
|
||||
+1
-1
@@ -109,7 +109,7 @@ class boss_watchkeeper_gargolmar : public CreatureScript
|
||||
DoScriptText(RAND(SAY_KILL_1, SAY_KILL_2), me);
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DIE, me);
|
||||
}
|
||||
|
||||
@@ -322,7 +322,7 @@ class boss_magtheridon : public CreatureScript
|
||||
DoScriptText(SAY_PLAYER_KILLED, me);
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (instance)
|
||||
instance->SetData(DATA_MAGTHERIDON_EVENT, DONE);
|
||||
@@ -533,7 +533,7 @@ class mob_hellfire_channeler : public CreatureScript
|
||||
DoCast(me, SPELL_SOUL_TRANSFER, true);
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*who*/)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (instance)
|
||||
instance->SetData(DATA_CHANNELER_EVENT, DONE);
|
||||
|
||||
@@ -224,7 +224,7 @@ class boss_grand_warlock_nethekurse : public CreatureScript
|
||||
DoScriptText(RAND(SAY_SLAY_1, SAY_SLAY_2), me);
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DIE, me);
|
||||
|
||||
@@ -356,7 +356,7 @@ class mob_fel_orc_convert : public CreatureScript
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
if (instance)
|
||||
{
|
||||
|
||||
+1
-1
@@ -295,7 +295,7 @@ class boss_warbringer_omrogg : public CreatureScript
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
Unit* pLeftHead = Unit::GetUnit(*me, LeftHeadGUID);
|
||||
Unit* pRightHead = Unit::GetUnit(*me, RightHeadGUID);
|
||||
|
||||
+1
-1
@@ -137,7 +137,7 @@ class boss_warchief_kargath_bladefist : public CreatureScript
|
||||
}
|
||||
}
|
||||
|
||||
void JustDied(Unit* /*Killer*/)
|
||||
void JustDied(Unit* /*killer*/)
|
||||
{
|
||||
DoScriptText(SAY_DEATH, me);
|
||||
removeAdds();
|
||||
|
||||
Reference in New Issue
Block a user