From 56ba87577bbf66f4be34c771d09434fdb60ab6a4 Mon Sep 17 00:00:00 2001 From: Michael Cook Date: Mon, 21 Oct 2013 19:10:01 -0400 Subject: [PATCH] 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 --- changelog.txt | 3 +++ common/spdat.cpp | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 19198d592..6e7fbd2f0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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... diff --git a/common/spdat.cpp b/common/spdat.cpp index 883a5d9f4..437fd88c7 100644 --- a/common/spdat.cpp +++ b/common/spdat.cpp @@ -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);