mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-28 08:51:39 +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:
parent
4ef9732e37
commit
56ba87577b
@ -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...
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user