v1.1.2: fixed wild magic continuing triggering if the hero dies

This commit is contained in:
Evan Debenham
2022-01-06 11:10:33 -05:00
parent b6630362a7
commit 16f3774a1a

View File

@@ -158,7 +158,7 @@ public class WildMagic extends ArmorAbility {
cur.partialCharge++;
cur.curCharges--;
}
if (!wands.isEmpty()) {
if (!wands.isEmpty() && hero.isAlive()) {
zapWand(wands, hero, target);
} else {
if (hero.buff(WildMagicTracker.class) != null) {