1
0
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:
Ivan Savenko
2025-07-10 17:27:27 +03:00
parent 79f3126c63
commit 5ada2d19e1
16 changed files with 44 additions and 40 deletions

View File

@@ -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);