v2.2.0: fixed followup strike rarely not clearing when enemies die

This commit is contained in:
Evan Debenham
2023-10-08 14:40:49 -04:00
committed by Evan Debenham
parent e124533d58
commit d912818f57

View File

@@ -683,7 +683,7 @@ public enum Talent {
Buff.affect(enemy, SuckerPunchTracker.class);
}
if (hero.hasTalent(Talent.FOLLOWUP_STRIKE) && enemy.alignment == Char.Alignment.ENEMY) {
if (hero.hasTalent(Talent.FOLLOWUP_STRIKE) && enemy.isAlive() && enemy.alignment == Char.Alignment.ENEMY) {
if (hero.belongings.attackingWeapon() instanceof MissileWeapon) {
Buff.prolong(hero, FollowupStrikeTracker.class, 5f).object = enemy.id();
} else if (hero.buff(FollowupStrikeTracker.class) != null