From a8ef8a982af2fb4b951f4f78fa5e74b58b195693 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 11 Jun 2021 22:32:03 -0400 Subject: [PATCH] v0.9.3a: fixed game freezes if wild magic is cast with no wands --- .../actors/hero/abilities/mage/WildMagic.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/mage/WildMagic.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/mage/WildMagic.java index 4867d1194..d2416590f 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/mage/WildMagic.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/mage/WildMagic.java @@ -62,8 +62,6 @@ public class WildMagic extends ArmorAbility { return; } - hero.busy(); - ArrayList wands = hero.belongings.getAllItems(Wand.class); Random.shuffle(wands); @@ -98,6 +96,8 @@ public class WildMagic extends ArmorAbility { return; } + hero.busy(); + Random.shuffle(wands); Buff.affect(hero, WildMagicTracker.class, 0f);