DamageDealAI: fixed source for Energy Counter

This commit is contained in:
Hanmac
2016-10-04 12:37:25 +00:00
parent 04fd286627
commit 396f3d4096

View File

@@ -34,7 +34,7 @@ public class DamageDealAi extends DamageAiBase {
Card source = sa.getHostCard();
if (damage.equals("X") && sa.getSVar(damage).equals("Count$ChosenNumber")) {
int energy = source.getCounters(CounterType.ENERGY);
int energy = ai.getCounters(CounterType.ENERGY);
for (SpellAbility s : source.getSpellAbilities()) {
if ("PayEnergy".equals(s.getParam("AILogic"))) {
energy += AbilityUtils.calculateAmount(source, s.getParam("CounterNum"), sa);