diff --git a/lib/spells/BattleSpellMechanics.cpp b/lib/spells/BattleSpellMechanics.cpp index e90822e35..5d930e310 100644 --- a/lib/spells/BattleSpellMechanics.cpp +++ b/lib/spells/BattleSpellMechanics.cpp @@ -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; }