diff options
author | Liberate <none@none> | 2010-09-15 14:38:22 +0200 |
---|---|---|
committer | Liberate <none@none> | 2010-09-15 14:38:22 +0200 |
commit | 23a49147cdfb3705e34170fc105c2762de08bfde (patch) | |
tree | 069126b2047ae57839fb8a064693e7dad4ea7976 /src | |
parent | 97a93573cbb677032ab51afc57f4d7627bc14f7e (diff) |
Fix a typo in previous rev. I thought renaming a function shouldn't be too hard. I guess I was wrong...
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/AI/CoreAI/PetAI.cpp | 2 | ||||
-rw-r--r-- | src/server/game/Entities/Unit/Unit.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp index 1975e68be0a..b9d6ca5a556 100644 --- a/src/server/game/AI/CoreAI/PetAI.cpp +++ b/src/server/game/AI/CoreAI/PetAI.cpp @@ -471,7 +471,7 @@ bool PetAI::_CanAttack(Unit *target) bool PetAI::_CheckTargetCC(Unit *target) { - if (target->HasCCAura()) + if (target->HasCrowdControl()) return true; return false; diff --git a/src/server/game/Entities/Unit/Unit.h b/src/server/game/Entities/Unit/Unit.h index 0976a2c2d2e..51710d9fe22 100644 --- a/src/server/game/Entities/Unit/Unit.h +++ b/src/server/game/Entities/Unit/Unit.h @@ -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)); } |