aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-01 14:55:51 -0500
committermegamage <none@none>2009-06-01 14:55:51 -0500
commit89d2c6afda2a8736b68db14445c5eb06c9ea8021 (patch)
tree58ea01158122bbaa1590aa9e61c5313d6648d6cf /src
parentb5a098643f05f2f7aa0a7e0130317998ae847852 (diff)
[7930] Added diminishing for spell 1499 and ranks. Author: Lightguard
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellMgr.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 6fb3d8cfc55..da571c83975 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -2570,17 +2570,24 @@ DiminishingGroup GetDiminishingReturnsGroupForSpell(SpellEntry const* spellproto
else if (spellproto->SpellFamilyFlags[0] & 0x8)
return DIMINISHING_POLYMORPH;
// Blind
- else if (spellproto->SpellFamilyFlags[0] & 0x00001000000)
+ else if (spellproto->SpellFamilyFlags[0] & 0x1000000)
return DIMINISHING_BLIND_CYCLONE;
break;
}
+ case SPELLFAMILY_HUNTER:
+ {
+ // Freezing trap
+ if (spellproto->SpellFamilyFlags[0] & 0x8)
+ return DIMINISHING_FREEZE;
+ break;
+ }
case SPELLFAMILY_WARLOCK:
{
// Death Coil
- if (spellproto->SpellFamilyFlags[0] & 0x00000080000)
+ if (spellproto->SpellFamilyFlags[0] & 0x80000)
return DIMINISHING_DEATHCOIL;
// Seduction
- else if (spellproto->SpellFamilyFlags[0] & 0x00040000000)
+ else if (spellproto->SpellFamilyFlags[0] & 0x40000000)
return DIMINISHING_FEAR;
// Curses/etc
else if (spellproto->SpellFamilyFlags[0] & 0x80000000)
@@ -2590,14 +2597,14 @@ DiminishingGroup GetDiminishingReturnsGroupForSpell(SpellEntry const* spellproto
case SPELLFAMILY_DRUID:
{
// Cyclone
- if (spellproto->SpellFamilyFlags[1] & 0x020)
+ if (spellproto->SpellFamilyFlags[1] & 0x20)
return DIMINISHING_BLIND_CYCLONE;
break;
}
case SPELLFAMILY_WARRIOR:
{
// Hamstring - limit duration to 10s in PvP
- if (spellproto->SpellFamilyFlags[0] & 0x00000000002)
+ if (spellproto->SpellFamilyFlags[0] & 0x2)
return DIMINISHING_LIMITONLY;
break;
}