mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
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:
@@ -471,7 +471,7 @@ bool PetAI::_CanAttack(Unit *target)
|
||||
|
||||
bool PetAI::_CheckTargetCC(Unit *target)
|
||||
{
|
||||
if (target->HasCCAura())
|
||||
if (target->HasCrowdControl())
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user