From 49cf4f9b0c6960b47911afd8350f3849189d195f Mon Sep 17 00:00:00 2001 From: click Date: Sun, 11 Apr 2010 11:00:51 +0200 Subject: [PATCH] * Fix: PvP vs PvE diminishing of Hunters Mark (2m/5m) Patch by Alez2006 --HG-- branch : trunk --- src/game/SpellMgr.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index 6dbc4ac96e..299a0e51f1 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: