1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-05 15:05:40 +02:00

Fix creatures can always cast on self

This commit is contained in:
AlexVinS 2015-09-16 17:35:49 +03:00
parent e552e37cf7
commit 92990c887c

View File

@ -2475,6 +2475,8 @@ bool CBattleInterface::isCastingPossibleHere (const CStack * sactive, const CSta
else
isCastingPossible = (curInt->cb->battleCanCastThisSpell (sp, myNumber) == ESpellCastProblem::OK);
}
else
isCastingPossible = false;
if(!myNumber.isAvailable() && !shere) //empty tile outside battlefield (or in the unavailable border column)
isCastingPossible = false;