Fix acrobat/warrior stance disabling and switching (#635)

* Fix acrobat stance removal

We should remove existing stance, not this activation

Also remove the Warrior Stance since Acrobat Stance is being activated

* Fix Warrior Stance removal

We should remove existing stance, not this activation

Also remove the Acrobat Stance since Warrior Stance is being activated
This commit is contained in:
Josh 2016-10-23 14:59:12 -04:00 committed by Christopher Martin
parent d34c1ffc20
commit ca40454356
2 changed files with 10 additions and 4 deletions

View file

@ -31,9 +31,12 @@ public class AcrobatStance extends ChiAbility {
ChiAbility stance = bPlayer.getStance();
if (stance != null) {
if (stance instanceof AcrobatStance) {
remove();
stance.remove();
return;
}
if (stance instanceof WarriorStance) {
stance.remove();
}
}
start();
bPlayer.setStance(this);
@ -123,4 +126,4 @@ public class AcrobatStance extends ChiAbility {
this.paralyzeDodgeBoost = paralyzeDodgeBoost;
}
}
}

View file

@ -26,9 +26,12 @@ public class WarriorStance extends ChiAbility {
ChiAbility stance = bPlayer.getStance();
if (stance != null) {
if (stance instanceof WarriorStance) {
remove();
stance.remove();
return;
}
if (stance instanceof AcrobatStance) {
stance.remove();
}
}
start();
bPlayer.setStance(this);
@ -102,4 +105,4 @@ public class WarriorStance extends ChiAbility {
this.resistance = resistance;
}
}
}