v0.9.3a: fixed game freezes if wild magic is cast with no wands

This commit is contained in:
Evan Debenham 2021-06-11 22:32:03 -04:00
parent 51dba1b588
commit a8ef8a982a

View File

@ -62,8 +62,6 @@ public class WildMagic extends ArmorAbility {
return;
}
hero.busy();
ArrayList<Wand> 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);