1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Petrify will freeze stack animations

This commit is contained in:
Ivan Savenko
2022-12-16 18:34:35 +02:00
parent 8665f36778
commit 733f21f8dc
8 changed files with 187 additions and 221 deletions

View File

@@ -547,6 +547,11 @@ bool CUnitState::isGhost() const
return ghost;
}
bool CUnitState::isFrozen() const
{
return hasBonus(Selector::source(Bonus::SPELL_EFFECT, SpellID::STONE_GAZE));
}
bool CUnitState::isValidTarget(bool allowDead) const
{
return (alive() || (allowDead && isDead())) && getPosition().isValid() && !isTurret();