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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user