XEEN: Fix giving lava damage after combat ends

This commit is contained in:
Paul Gilbert 2019-08-22 19:37:17 -07:00
parent 0e691072bb
commit b0913fcab3

View File

@ -680,6 +680,9 @@ void Interface::doStepCode() {
int oldTarget = combat._combatTarget;
combat._combatTarget = 0;
// WORKAROUND: Stepping into combat whilst on lava results in damageType being lost
combat._damageType = (surfaceId == SURFTYPE_LAVA) ? DT_FIRE : DT_PHYSICAL;
combat.giveCharDamage(damage, combat._damageType, 0);
combat._combatTarget = oldTarget;