GetMinLevel will now return 0 for more cases

For some reason EQ uses 127 (melee classes), 254 (some AAs), and 255
in the class level for spells a class doesn't have
This commit is contained in:
Michael Cook
2013-10-21 19:10:01 -04:00
parent 4ef9732e37
commit 56ba87577b
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -496,7 +496,8 @@ int GetMinLevel(uint16 spell_id) {
//if we can't cast the spell return 0
//just so it wont screw up calculations used in other areas of the code
if(min == 255)
//seen 127, 254, 255
if(min >= 127)
return 0;
else
return(min);