v0.9.3a: fixed game freezes if wild magic is cast with no wands
This commit is contained in:
parent
51dba1b588
commit
a8ef8a982a
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user