mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
disintegrate
This commit is contained in:
@ -831,7 +831,8 @@ void CUnitState::damage(int64_t & amount)
|
||||
health.damage(amount);
|
||||
}
|
||||
|
||||
if(health.available() <= 0 && (cloned || summoned))
|
||||
bool disintegrate = hasBonusOfType(BonusType::DISINTEGRATE);
|
||||
if(health.available() <= 0 && (cloned || summoned || disintegrate))
|
||||
ghostPending = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user