|
|
@ -50,17 +50,17 @@ public class TransferStatPowerAction extends AbstractPowerAction { |
|
|
|
super(powerAction); |
|
|
|
super(powerAction); |
|
|
|
this.effectID = powerAction.effects.get(0).effect_id; |
|
|
|
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; |
|
|
|
this.transferFromHealth = true; |
|
|
|
else if (st.equals("MANA")) |
|
|
|
else if (powerAction.statTransfer.fromStat.equals(mbEnums.CostType.MANA)) |
|
|
|
this.transferFromMana = true; |
|
|
|
this.transferFromMana = true; |
|
|
|
else |
|
|
|
else |
|
|
|
this.transferFromStamina = true; |
|
|
|
this.transferFromStamina = true; |
|
|
|
st = powerAction.getString("transferToType"); |
|
|
|
|
|
|
|
if (st.equals("HEALTH")) |
|
|
|
if (powerAction.statTransfer.toStat.equals(mbEnums.CostType.HEALTH)) |
|
|
|
this.transferToHealth = true; |
|
|
|
this.transferToHealth = true; |
|
|
|
else if (st.equals("MANA")) |
|
|
|
else if (powerAction.statTransfer.fromStat.equals(mbEnums.CostType.MANA)) |
|
|
|
this.transferToMana = true; |
|
|
|
this.transferToMana = true; |
|
|
|
else |
|
|
|
else |
|
|
|
this.transferToStamina = true; |
|
|
|
this.transferToStamina = true; |
|
|
|