Fix the math so berserkers aren't left out in spell related checks.

This commit is contained in:
Natedog2012
2016-02-11 13:07:42 -08:00
parent a14b3117e9
commit 31b6346f03
6 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -1082,11 +1082,11 @@ int32 Client::GenericFocus(uint16 spell_id, uint16 modspellid)
switch( spells[modspellid].effectid[i] )
{
case SE_LimitMaxLevel:
if (spell.classes[(GetClass()%16) - 1] > modspell.base[i])
if (spell.classes[(GetClass()%17) - 1] > modspell.base[i])
return 100;
break;
case SE_LimitMinLevel:
if (spell.classes[(GetClass()%16) - 1] < modspell.base[i])
if (spell.classes[(GetClass()%17) - 1] < modspell.base[i])
return 100;
break;
case SE_IncreaseRange: