v0.9.3a: fixed game freezes if wild magic is cast with no wands
This commit is contained in:
+2
-2
@@ -62,8 +62,6 @@ public class WildMagic extends ArmorAbility {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
hero.busy();
|
|
||||||
|
|
||||||
ArrayList<Wand> wands = hero.belongings.getAllItems(Wand.class);
|
ArrayList<Wand> wands = hero.belongings.getAllItems(Wand.class);
|
||||||
Random.shuffle(wands);
|
Random.shuffle(wands);
|
||||||
|
|
||||||
@@ -98,6 +96,8 @@ public class WildMagic extends ArmorAbility {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hero.busy();
|
||||||
|
|
||||||
Random.shuffle(wands);
|
Random.shuffle(wands);
|
||||||
|
|
||||||
Buff.affect(hero, WildMagicTracker.class, 0f);
|
Buff.affect(hero, WildMagicTracker.class, 0f);
|
||||||
|
|||||||
Reference in New Issue
Block a user