From 1417760f5b061c66a0eb72227b7a6b62f8d5a294 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 7 Sep 2024 15:49:58 -0400 Subject: [PATCH] StartTransfer poweraction work --- .../powers/poweractions/TransferStatPowerAction.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/engine/powers/poweractions/TransferStatPowerAction.java b/src/engine/powers/poweractions/TransferStatPowerAction.java index 68fe2ef7..a3834c74 100644 --- a/src/engine/powers/poweractions/TransferStatPowerAction.java +++ b/src/engine/powers/poweractions/TransferStatPowerAction.java @@ -50,17 +50,17 @@ public class TransferStatPowerAction extends AbstractPowerAction { super(powerAction); this.effectID = powerAction.effects.get(0).effect_id; - String st = powerAction.statTransfer.fromStat; - if (st.equals("HEALTH")) + + if (powerAction.statTransfer.fromStat.equals(mbEnums.CostType.HEALTH)) this.transferFromHealth = true; - else if (st.equals("MANA")) + else if (powerAction.statTransfer.fromStat.equals(mbEnums.CostType.MANA)) this.transferFromMana = true; else this.transferFromStamina = true; - st = powerAction.getString("transferToType"); - if (st.equals("HEALTH")) + + if (powerAction.statTransfer.toStat.equals(mbEnums.CostType.HEALTH)) this.transferToHealth = true; - else if (st.equals("MANA")) + else if (powerAction.statTransfer.fromStat.equals(mbEnums.CostType.MANA)) this.transferToMana = true; else this.transferToStamina = true;