mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-22 16:05:01 +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
2 changed files with 10 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue