v1.3.0: fixed 'death by sac fire' not triggering with unblessed ankh

This commit is contained in:
Evan Debenham
2022-07-05 12:16:51 -04:00
parent 0ffbf194e0
commit f734553d89

View File

@@ -30,6 +30,7 @@ import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
import com.shatteredpixel.shatteredpixeldungeon.actors.Actor;
import com.shatteredpixel.shatteredpixeldungeon.actors.Char;
import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.SacrificialFire;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.AdrenalineSurge;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Amok;
import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.AnkhInvulnerability;
@@ -1698,6 +1699,11 @@ public class Hero extends Char {
((Hero.Doom)cause).onDeath();
}
SacrificialFire.Marked sacMark = buff(SacrificialFire.Marked.class);
if (sacMark != null){
sacMark.detach();
}
}
return;
}