v2.5.0: fixed new cursed wand lightning applying para after kill

This commit is contained in:
Evan Debenham
2024-08-29 15:20:38 -04:00
parent a430f10a6e
commit 63e6ab9e0f

View File

@@ -576,8 +576,9 @@ public class CursedWand {
if (ch.alignment != Char.Alignment.ALLY || !positiveOnly){
//shocking dart damage and a little stun
ch.damage(Random.NormalIntRange(5 + Dungeon.scalingDepth() / 4, 10 + Dungeon.scalingDepth() / 4), new Electricity());
Buff.affect(ch, Paralysis.class, Paralysis.DURATION/2f);
if (!ch.isAlive() && ch == Dungeon.hero){
if (ch.isAlive()) {
Buff.affect(ch, Paralysis.class, Paralysis.DURATION / 2f);
} else if (ch == Dungeon.hero){
if (user == Dungeon.hero && origin != null) {
Badges.validateDeathFromFriendlyMagic();
Dungeon.fail( origin );