1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

Merge pull request #4504 from Laserlicht/hota_bonus

disintegrate bonus
This commit is contained in:
Ivan Savenko
2024-08-28 14:00:11 +03:00
committed by GitHub
5 changed files with 18 additions and 2 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;
}