1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-21 21:17:49 +02:00
This commit is contained in:
AlexVinS 2016-03-01 15:14:27 +03:00
parent be67faad90
commit 22d885af22

View File

@ -346,6 +346,11 @@ ESpellCastProblem::ESpellCastProblem EarthquakeMechanics::canBeCast(const CBattl
return ESpellCastProblem::NO_APPROPRIATE_TARGET;
}
const auto attackableBattleHexes = cb->getAttackableBattleHexes();
if(attackableBattleHexes.empty())
return ESpellCastProblem::NO_APPROPRIATE_TARGET;
return ESpellCastProblem::OK;
}