Core: Some function renaming.
This commit is contained in:
1 parent
46374bf533
commit
66978cfc3b
449 files changed
+2412
-2412
No files matched your search
@@ -139,7 +139,7 @@ void ScriptedAI::DoStartNoMovement(Unit* victim)
|
||||
|
||||
void ScriptedAI::DoStopAttack()
|
||||
{
|
||||
if (me->getVictim())
|
||||
if (me->GetVictim())
|
||||
me->AttackStop();
|
||||
}
|
||||
|
||||
@@ -313,7 +313,7 @@ void ScriptedAI::DoTeleportAll(float x, float y, float z, float o)
|
||||
Map::PlayerList const& PlayerList = map->GetPlayers();
|
||||
for (Map::PlayerList::const_iterator itr = PlayerList.begin(); itr != PlayerList.end(); ++itr)
|
||||
if (Player* player = itr->getSource())
|
||||
if (player->isAlive())
|
||||
if (player->IsAlive())
|
||||
player->TeleportTo(me->GetMapId(), x, y, z, o, TELE_TO_NOT_LEAVE_COMBAT);
|
||||
}
|
||||
|
||||
@@ -407,7 +407,7 @@ bool ScriptedAI::EnterEvadeIfOutOfCombatArea(uint32 const diff)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (me->IsInEvadeMode() || !me->getVictim())
|
||||
if (me->IsInEvadeMode() || !me->GetVictim())
|
||||
return false;
|
||||
|
||||
float x = me->GetPositionX();
|
||||
@@ -454,7 +454,7 @@ BossAI::BossAI(Creature* creature, uint32 bossId) : ScriptedAI(creature),
|
||||
|
||||
void BossAI::_Reset()
|
||||
{
|
||||
if (!me->isAlive())
|
||||
if (!me->IsAlive())
|
||||
return;
|
||||
|
||||
me->ResetLootMode();
|
||||
@@ -555,7 +555,7 @@ bool BossAI::CheckBoundary(Unit* who)
|
||||
void BossAI::JustSummoned(Creature* summon)
|
||||
{
|
||||
summons.Summon(summon);
|
||||
if (me->isInCombat())
|
||||
if (me->IsInCombat())
|
||||
DoZoneInCombat(summon);
|
||||
}
|
||||
|
||||
@@ -590,7 +590,7 @@ WorldBossAI::WorldBossAI(Creature* creature) :
|
||||
|
||||
void WorldBossAI::_Reset()
|
||||
{
|
||||
if (!me->isAlive())
|
||||
if (!me->IsAlive())
|
||||
return;
|
||||
|
||||
events.Reset();
|
||||
|
||||
Reference in new issue
Block a user