v2.4.0: fixed brawler's stance deactivation not working correctly
This commit is contained in:
+2
-1
@@ -177,11 +177,12 @@ public class RingOfForce extends Ring {
|
|||||||
public void execute(Hero hero, String action) {
|
public void execute(Hero hero, String action) {
|
||||||
if (action.equals(AC_ABILITY)){
|
if (action.equals(AC_ABILITY)){
|
||||||
if (hero.buff(BrawlersStance.class) != null){
|
if (hero.buff(BrawlersStance.class) != null){
|
||||||
if (hero.buff(BrawlersStance.class).active){
|
if (!hero.buff(BrawlersStance.class).active){
|
||||||
hero.buff(BrawlersStance.class).reset();
|
hero.buff(BrawlersStance.class).reset();
|
||||||
} else {
|
} else {
|
||||||
hero.buff(BrawlersStance.class).active = false;
|
hero.buff(BrawlersStance.class).active = false;
|
||||||
}
|
}
|
||||||
|
BuffIndicator.refreshHero();
|
||||||
AttackIndicator.updateState();
|
AttackIndicator.updateState();
|
||||||
} else if (!isEquipped(hero)) {
|
} else if (!isEquipped(hero)) {
|
||||||
GLog.w(Messages.get(MeleeWeapon.class, "ability_need_equip"));
|
GLog.w(Messages.get(MeleeWeapon.class, "ability_need_equip"));
|
||||||
|
|||||||
Reference in New Issue
Block a user