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

View File

@ -1,5 +1,8 @@
EQEMu Changelog (Started on Sept 24, 2003 15:50)
-------------------------------------------------------
== 10/21/2013 ==
demonstar55: Changed GetMinLevel return 0 for more cases that EQ uses for some reason ...
== 10/18/2013 ==
Uleat: Expanded the 'Bag Type' enumeration to include all known values. Also, set in place additional 'Bag Type' to 'Skill Type' conversions. Some of these will need to be verified before activation.
Uleat: Cleaned up some unused enumerations to show a move towards standardization. More to come...

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);