Fix a typo in previous rev. I thought renaming a function shouldn't be too hard. I guess I was wrong...

--HG--
branch : trunk
This commit is contained in:
Liberate
2010-09-15 14:38:22 +02:00
parent 97a93573cb
commit 23a49147cd
2 changed files with 2 additions and 2 deletions

View File

@@ -471,7 +471,7 @@ bool PetAI::_CanAttack(Unit *target)
bool PetAI::_CheckTargetCC(Unit *target)
{
if (target->HasCCAura())
if (target->HasCrowdControl())
return true;
return false;

View File

@@ -1640,7 +1640,7 @@ class Unit : public WorldObject
bool HasAuraTypeWithAffectMask(AuraType auratype, SpellEntry const * affectedSpell) const;
bool HasAuraTypeWithValue(AuraType auratype, int32 value) const;
bool HasNegativeAuraWithInterruptFlag(uint32 flag, uint64 guid = 0);
bool HasCCAura() {
bool HasCrowdControl() {
return (HasAuraType(SPELL_AURA_MOD_CONFUSE) || HasAuraType(SPELL_AURA_MOD_FEAR) || HasAuraType(SPELL_AURA_MOD_STUN) ||
HasAuraType(SPELL_AURA_MOD_ROOT) || HasAuraType(SPELL_AURA_TRANSFORM));
}