aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorclick <none@none>2010-04-11 11:00:51 +0200
committerclick <none@none>2010-04-11 11:00:51 +0200
commit49cf4f9b0c6960b47911afd8350f3849189d195f (patch)
tree4aa7bd2458026da0013042221444da2f9529cbad /src
parent939f449ad613d6111af54002c41d3be06eeeb8f7 (diff)
* Fix: PvP vs PvE diminishing of Hunters Mark (2m/5m)
Patch by Alez2006 --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellMgr.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 6dbc4ac96e7..299a0e51f1e 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -2934,6 +2934,13 @@ DiminishingGroup GetDiminishingReturnsGroupForSpell(SpellEntry const* spellproto
return DIMINISHING_POLYMORPH;
break;
}
+ case SPELLFAMILY_HUNTER:
+ {
+ // Hunter's mark
+ if ((spellproto->SpellFamilyFlags[0] & 0x400) && spellproto->SpellIconID == 538)
+ return DIMINISHING_LIMITONLY;
+ break;
+ }
default:
break;
}
@@ -2980,6 +2987,9 @@ int32 GetDiminishingReturnsLimitDuration(DiminishingGroup group, SpellEntry cons
// Wyvern Sting
if (spellproto->SpellFamilyFlags[1] & 0x1000)
return 6 * IN_MILISECONDS;
+ // Hunter's Mark
+ if (spellproto->SpellFamilyFlags[0] & 0x400)
+ return 120 * IN_MILISECONDS;
break;
}
case SPELLFAMILY_PALADIN: