Core: Cleaning up hungarian notation - Phase8: pSummon -> summon (also did related hits)
This commit is contained in:
+7
-7
@@ -366,22 +366,22 @@ class boss_vazruden_the_herald : public CreatureScript
|
||||
}
|
||||
}
|
||||
|
||||
void JustSummoned(Creature* pSummoned)
|
||||
void JustSummoned(Creature* summoned)
|
||||
{
|
||||
if (!pSummoned)
|
||||
if (!summoned)
|
||||
return;
|
||||
Unit* victim = me->getVictim();
|
||||
if (pSummoned->GetEntry() == ENTRY_NAZAN)
|
||||
if (summoned->GetEntry() == ENTRY_NAZAN)
|
||||
{
|
||||
CAST_AI(boss_nazan::boss_nazanAI, pSummoned->AI())->VazrudenGUID = VazrudenGUID;
|
||||
pSummoned->AddUnitMovementFlag(MOVEMENTFLAG_LEVITATING);
|
||||
pSummoned->SetSpeed(MOVE_FLIGHT, 2.5f);
|
||||
CAST_AI(boss_nazan::boss_nazanAI, summoned->AI())->VazrudenGUID = VazrudenGUID;
|
||||
summoned->AddUnitMovementFlag(MOVEMENTFLAG_LEVITATING);
|
||||
summoned->SetSpeed(MOVE_FLIGHT, 2.5f);
|
||||
if (victim)
|
||||
AttackStartNoMove(victim);
|
||||
}
|
||||
else
|
||||
if (victim)
|
||||
pSummoned->AI()->AttackStart(victim);
|
||||
summoned->AI()->AttackStart(victim);
|
||||
}
|
||||
|
||||
void SentryDownBy(Unit* killer)
|
||||
|
||||
@@ -434,15 +434,15 @@ class boss_kaelthas : public CreatureScript
|
||||
DoScriptText(RAND(SAY_SLAY1, SAY_SLAY2, SAY_SLAY3), me);
|
||||
}
|
||||
|
||||
void JustSummoned(Creature* pSummoned)
|
||||
void JustSummoned(Creature* summoned)
|
||||
{
|
||||
// if not phoenix, then it's one of the 7 weapons
|
||||
if (pSummoned->GetEntry() != NPC_PHOENIX)
|
||||
if (summoned->GetEntry() != NPC_PHOENIX)
|
||||
{
|
||||
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
|
||||
pSummoned->AI()->AttackStart(target);
|
||||
summoned->AI()->AttackStart(target);
|
||||
|
||||
summons.Summon(pSummoned);
|
||||
summons.Summon(summoned);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -676,17 +676,17 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void JustSummoned(Creature* pSummoned)
|
||||
void JustSummoned(Creature* summoned)
|
||||
{
|
||||
if (pSummoned->GetEntry() == NPC_MURK_BRUTE)
|
||||
DoScriptText(SAY_MAG_NO_ESCAPE, pSummoned);
|
||||
if (summoned->GetEntry() == NPC_MURK_BRUTE)
|
||||
DoScriptText(SAY_MAG_NO_ESCAPE, summoned);
|
||||
|
||||
if (pSummoned->isTotem())
|
||||
if (summoned->isTotem())
|
||||
return;
|
||||
|
||||
pSummoned->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
|
||||
pSummoned->GetMotionMaster()->MovePoint(0, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ());
|
||||
pSummoned->AI()->AttackStart(me);
|
||||
summoned->RemoveUnitMovementFlag(MOVEMENTFLAG_WALKING);
|
||||
summoned->GetMotionMaster()->MovePoint(0, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ());
|
||||
summoned->AI()->AttackStart(me);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1004,10 +1004,10 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void JustSummoned(Creature* pSummoned)
|
||||
void JustSummoned(Creature* summoned)
|
||||
{
|
||||
if (pSummoned->GetEntry() == NPC_COILSKAR_ASSASSIN)
|
||||
pSummoned->AI()->AttackStart(me);
|
||||
if (summoned->GetEntry() == NPC_COILSKAR_ASSASSIN)
|
||||
summoned->AI()->AttackStart(me);
|
||||
}
|
||||
|
||||
//this is very unclear, random say without no real relevance to script/event
|
||||
|
||||
Reference in New Issue
Block a user