1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

disintegrate

This commit is contained in:
Laserlicht
2024-08-24 00:29:36 +02:00
parent 5de5ac5eb5
commit 9c4d4e89d6
3 changed files with 12 additions and 1 deletions

View File

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