aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellMgr.h
diff options
context:
space:
mode:
authorclick <none@none>2010-05-25 10:36:33 +0200
committerclick <none@none>2010-05-25 10:36:33 +0200
commitb4e19528ef69269b837fbf787b2f1f7f9904d504 (patch)
treee0abe3584fd0f320a929f8932387c38b83c39049 /src/game/SpellMgr.h
parent8f908f9df70c63da2bec7acdfe3f3f1e8eb9d527 (diff)
Make spellsteal respect dispel-resistances - patch by dr.tenma (thank you!)
This changes the way SPELL_AURA_MOD_DISPEL_RESIST works and fixes mages root diminishing returns Closes issue #1045. --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellMgr.h')
-rw-r--r--src/game/SpellMgr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellMgr.h b/src/game/SpellMgr.h
index b6211dc2259..94121d4610d 100644
--- a/src/game/SpellMgr.h
+++ b/src/game/SpellMgr.h
@@ -192,7 +192,7 @@ AuraState GetSpellAuraState(SpellEntry const * spellInfo);
inline float GetSpellRadiusForHostile(SpellRadiusEntry const *radius) { return (radius ? radius->radiusHostile : 0); }
inline float GetSpellRadiusForFriend(SpellRadiusEntry const *radius) { return (radius ? radius->radiusFriend : 0); }
uint32 GetSpellCastTime(SpellEntry const* spellInfo, Spell * spell = NULL);
-bool GetDispelChance(Unit* caster, uint32 spellId);
+int32 GetDispelChance(Unit* auraCaster, Unit* target, uint32 spellId, bool offensive, bool *result);
inline float GetSpellMinRangeForHostile(SpellRangeEntry const *range) { return (range ? range->minRangeHostile : 0); }
inline float GetSpellMaxRangeForHostile(SpellRangeEntry const *range) { return (range ? range->maxRangeHostile : 0); }
inline float GetSpellMinRangeForFriend(SpellRangeEntry const *range) { return (range ? range->minRangeFriend : 0); }