v0.6.4: fixed detach issues with the magical holster

This commit is contained in:
Evan Debenham 2018-03-24 10:46:06 -04:00
parent d2ebe83ad1
commit a6442bbb7e

View File

@ -64,7 +64,11 @@ public class MagicalHolster extends Bag {
public void onDetach( ) { public void onDetach( ) {
super.onDetach(); super.onDetach();
for (Item item : items) { for (Item item : items) {
((Wand)item).stopCharging(); if (item instanceof Wand) {
((Wand)item).stopCharging();
} else if (item instanceof MissileWeapon){
((MissileWeapon) item).holster = false;
}
} }
} }