From a0ab7602491cc96135d8358ee554117710f3cff1 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Sun, 25 Dec 2022 16:53:40 +0200 Subject: [PATCH] Removed debug code --- lib/battle/CBattleInfoCallback.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/battle/CBattleInfoCallback.cpp b/lib/battle/CBattleInfoCallback.cpp index 9ac2c4873..346dd9ec0 100644 --- a/lib/battle/CBattleInfoCallback.cpp +++ b/lib/battle/CBattleInfoCallback.cpp @@ -145,8 +145,8 @@ ESpellCastProblem::ESpellCastProblem CBattleInfoCallback::battleCanCastSpell(con { case spells::Mode::HERO: { - //if(battleCastSpells(side.get()) > 0) - // return ESpellCastProblem::CASTS_PER_TURN_LIMIT; + if(battleCastSpells(side.get()) > 0) + return ESpellCastProblem::CASTS_PER_TURN_LIMIT; auto hero = dynamic_cast(caster);