Core/Spells: Judgment of Justice should be limited to 10 seconds in PvP

Closes #2036
This commit is contained in:
elecyb
2011-06-19 02:27:46 +07:00
committed by tobmaps
parent 19ede8fa72
commit 89c97b94fd
+5 -1
View File
@@ -2862,9 +2862,13 @@ DiminishingGroup GetDiminishingReturnsGroupForSpell(SpellEntry const* spellproto
} }
case SPELLFAMILY_PALADIN: case SPELLFAMILY_PALADIN:
{ {
// Judgement of Justice - limit duration to 10s in PvP
if (spellproto->SpellFamilyFlags[0] & 0x100000)
return DIMINISHING_LIMITONLY;
// Turn Evil // Turn Evil
if ((spellproto->SpellFamilyFlags[1] & 0x804000) && spellproto->SpellIconID == 309) else if ((spellproto->SpellFamilyFlags[1] & 0x804000) && spellproto->SpellIconID == 309)
return DIMINISHING_FEAR; return DIMINISHING_FEAR;
break;
} }
case SPELLFAMILY_PRIEST: case SPELLFAMILY_PRIEST:
{ {