Remove some "_" from private methods as required by TC standards. Thanks to Shauren for pointing out.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user