mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-11-01 01:42:18 +00:00
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:
parent
d34c1ffc20
commit
ca40454356
|
@ -31,9 +31,12 @@ public class AcrobatStance extends ChiAbility {
|
||||||
ChiAbility stance = bPlayer.getStance();
|
ChiAbility stance = bPlayer.getStance();
|
||||||
if (stance != null) {
|
if (stance != null) {
|
||||||
if (stance instanceof AcrobatStance) {
|
if (stance instanceof AcrobatStance) {
|
||||||
remove();
|
stance.remove();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (stance instanceof WarriorStance) {
|
||||||
|
stance.remove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
start();
|
start();
|
||||||
bPlayer.setStance(this);
|
bPlayer.setStance(this);
|
||||||
|
|
|
@ -26,9 +26,12 @@ public class WarriorStance extends ChiAbility {
|
||||||
ChiAbility stance = bPlayer.getStance();
|
ChiAbility stance = bPlayer.getStance();
|
||||||
if (stance != null) {
|
if (stance != null) {
|
||||||
if (stance instanceof WarriorStance) {
|
if (stance instanceof WarriorStance) {
|
||||||
remove();
|
stance.remove();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (stance instanceof AcrobatStance) {
|
||||||
|
stance.remove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
start();
|
start();
|
||||||
bPlayer.setStance(this);
|
bPlayer.setStance(this);
|
||||||
|
|
Loading…
Reference in a new issue