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:
parent
e552e37cf7
commit
92990c887c
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user