Browse Source

Partial fix for Coronius specialty bug

Ivan Savenko 1 year ago
parent
commit
65721123a1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/spells/CSpellHandler.cpp

+ 2 - 2
lib/spells/CSpellHandler.cpp

@@ -107,8 +107,8 @@ const CSpell::LevelInfo & CSpell::getLevelInfo(const int32_t level) const
 {
 	if(level < 0 || level >= GameConstants::SPELL_SCHOOL_LEVELS)
 	{
-		logGlobal->error("CSpell::getLevelInfo: invalid school level %d", level);
-		return levels.at(0);
+		logGlobal->error("CSpell::getLevelInfo: invalid school mastery level %d", level);
+		return levels.at(MasteryLevel::EXPERT);
 	}
 
 	return levels.at(level);