v2.4.0: fixed brawler's stance deactivation not working correctly

This commit is contained in:
Evan Debenham
2024-04-25 13:32:14 -04:00
parent 40234c0b43
commit f6f9f5eb61

View File

@@ -177,11 +177,12 @@ public class RingOfForce extends Ring {
public void execute(Hero hero, String action) {
if (action.equals(AC_ABILITY)){
if (hero.buff(BrawlersStance.class) != null){
if (hero.buff(BrawlersStance.class).active){
if (!hero.buff(BrawlersStance.class).active){
hero.buff(BrawlersStance.class).reset();
} else {
hero.buff(BrawlersStance.class).active = false;
}
BuffIndicator.refreshHero();
AttackIndicator.updateState();
} else if (!isEquipped(hero)) {
GLog.w(Messages.get(MeleeWeapon.class, "ability_need_equip"));