mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix assert and condition for counting spell hexes
This commit is contained in:
@@ -164,6 +164,7 @@ EffectTarget UnitEffect::transformTargetByRange(const Mechanics * m, const Targe
|
||||
|
||||
if(m->alwaysHitFirstTarget())
|
||||
{
|
||||
//TODO: examine if adjustments needed related to INVINCIBLE bonus
|
||||
if(!aimPoint.empty() && aimPoint.front().unitValue)
|
||||
targets.insert(aimPoint.front().unitValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user