v0.9.3: added a couple safety checks to fix some crashes
This commit is contained in:
parent
06a9d12305
commit
bc4db20ca7
|
@ -127,7 +127,9 @@ public class WildMagic extends ArmorAbility {
|
|||
if (!wands.isEmpty()){
|
||||
zapWand(wands, hero, target);
|
||||
} else {
|
||||
hero.buff(WildMagicTracker.class).detach();
|
||||
if (hero.buff(WildMagicTracker.class) != null){
|
||||
hero.buff(WildMagicTracker.class).detach();
|
||||
}
|
||||
Item.updateQuickslot();
|
||||
Invisibility.dispel();
|
||||
hero.spendAndNext(Actor.TICK);
|
||||
|
|
|
@ -298,7 +298,7 @@ public class CavesBossLevel extends Level {
|
|||
}
|
||||
GameScene.updateMap();
|
||||
|
||||
customArenaVisuals.updateState();
|
||||
if (customArenaVisuals != null) customArenaVisuals.updateState();
|
||||
|
||||
Dungeon.observe();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user