mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
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:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user