From 4666c0c05075eec7515f7e6861bb84614298940c Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Thu, 30 Mar 2017 23:29:07 -0400 Subject: [PATCH] Don't go below 1 for caster level This is also wrong as fuck. --- zone/spells.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/spells.cpp b/zone/spells.cpp index dcfa3eec7..93c5ac147 100644 --- a/zone/spells.cpp +++ b/zone/spells.cpp @@ -5399,7 +5399,7 @@ int Mob::GetCasterLevel(uint16 spell_id) { int level = GetLevel(); level += itembonuses.effective_casting_level + spellbonuses.effective_casting_level + aabonuses.effective_casting_level; Log.Out(Logs::Detail, Logs::Spells, "Determined effective casting level %d+%d+%d=%d", GetLevel(), spellbonuses.effective_casting_level, itembonuses.effective_casting_level, level); - return(level); + return std::max(1, level); } //this method does NOT tell the client to stop singing the song.