mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
UI now shows spell range from config
This commit is contained in:
@@ -40,7 +40,7 @@ RemoveObjectEffect::RemoveObjectEffect(const CSpell * s, const JsonNode & config
|
||||
|
||||
bool RemoveObjectEffect::canBeCastAtImpl(spells::Problem & problem, const IGameInfoCallback * cb, const spells::Caster * caster, const int3 & pos) const
|
||||
{
|
||||
if (!AdventureSpellRangedEffect::canBeCastAtImpl(problem, cb, caster, pos))
|
||||
if (!isTargetInRange(problem, cb, caster, pos))
|
||||
return false;
|
||||
|
||||
const TerrainTile * t = cb->getTile(pos);
|
||||
|
||||
Reference in New Issue
Block a user