Remove some "_" from private methods as required by TC standards. Thanks to Shauren for pointing out.

This commit is contained in:
megamage
2011-10-13 17:01:55 -04:00
parent 0e65e94f40
commit c8251bc619
10 changed files with 87 additions and 88 deletions
+3 -3
View File
@@ -180,7 +180,7 @@ void PetAI::UpdateAI(const uint32 diff)
if (!spellUsed)
delete spell;
}
else if (me->getVictim() && _CanAttack(me->getVictim()) && spellInfo->CanBeUsedInCombat())
else if (me->getVictim() && CanAttack(me->getVictim()) && spellInfo->CanBeUsedInCombat())
{
Spell* spell = new Spell(me, spellInfo, TRIGGERED_NONE, 0);
if (spell->CanAutoCast(me->getVictim()))
@@ -290,7 +290,7 @@ void PetAI::AttackStart(Unit* target)
// Overrides Unit::AttackStart to correctly evaluate Pet states
// Check all pet states to decide if we can attack this target
if (!_CanAttack(target))
if (!CanAttack(target))
return;
targetHasCC = _CheckTargetCC(target);
@@ -440,7 +440,7 @@ void PetAI::MovementInform(uint32 moveType, uint32 data)
}
}
bool PetAI::_CanAttack(Unit* target)
bool PetAI::CanAttack(Unit* target)
{
// Evaluates wether a pet can attack a specific
// target based on CommandState, ReactState and other flags
+1 -1
View File
@@ -57,7 +57,7 @@ class PetAI : public CreatureAI
Unit* SelectNextTarget();
void HandleReturnMovement();
void DoAttack(Unit* target, bool chase);
bool _CanAttack(Unit* target);
bool CanAttack(Unit* target);
bool _CheckTargetCC(Unit* target);
};
#endif