Core/Spells: add correct checking for dispeling errors. Fixes spammable cleanse.

This commit is contained in:
Kandera
2012-03-15 10:56:56 -04:00
parent 84891377b5
commit 01bc6c483b
4 changed files with 62 additions and 39 deletions
+3
View File
@@ -341,6 +341,7 @@ class Transport;
class Vehicle;
typedef std::list<Unit*> UnitList;
typedef std::list< std::pair<Aura*, uint8> > DispelChargesList;
struct SpellImmune
{
@@ -1814,6 +1815,8 @@ class Unit : public WorldObject
AuraApplication * GetAuraApplicationOfRankedSpell(uint32 spellId, uint64 casterGUID = 0, uint64 itemCasterGUID = 0, uint8 reqEffMask = 0, AuraApplication * except = NULL) const;
Aura* GetAuraOfRankedSpell(uint32 spellId, uint64 casterGUID = 0, uint64 itemCasterGUID = 0, uint8 reqEffMask = 0) const;
void GetDispellableAuraList(Unit* caster, uint32 dispelMask, DispelChargesList& dispelList);
bool HasAuraEffect(uint32 spellId, uint8 effIndex, uint64 caster = 0) const;
uint32 GetAuraCount(uint32 spellId) const;
bool HasAura(uint32 spellId, uint64 casterGUID = 0, uint64 itemCasterGUID = 0, uint8 reqEffMask = 0) const;