1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

get rid of CPlayerBattleCallback::battleCanCastSpell

This commit is contained in:
AlexVinS
2017-06-05 22:16:12 +03:00
parent 1d1519db5c
commit 4d430f6ad8
6 changed files with 23 additions and 33 deletions

View File

@@ -547,7 +547,7 @@ void CSpellWindow::SpellArea::clickLeft(tribool down, bool previousState)
}
//we will cast a spell
if(mySpell->combatSpell && owner->myInt->battleInt && owner->myInt->cb->battleCanCastSpell()) //if battle window is open
if(mySpell->combatSpell && owner->myInt->battleInt) //if battle window is open
{
ESpellCastProblem::ESpellCastProblem problem = owner->myInt->cb->battleCanCastThisSpell(mySpell);
switch (problem)