Now Planeswalkers use counters for loyalty. Fixed Issue 69.

This commit is contained in:
magenoxx 2011-05-15 16:42:45 +04:00
parent 13497ec651
commit d5c4ac371a
32 changed files with 169 additions and 64 deletions

View file

@ -35,6 +35,8 @@ import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.UUID;
import mage.counters.CounterType;
import mage.game.Game;
import mage.game.combat.CombatGroup;
import mage.game.permanent.Permanent;
@ -66,7 +68,7 @@ public class CombatSimulator implements Serializable {
}
else {
Permanent permanent = game.getPermanent(defenderId);
simCombat.planeswalkerLoyalty.put(defenderId, permanent.getLoyalty().getValue());
simCombat.planeswalkerLoyalty.put(defenderId, permanent.getCounters().getCount(CounterType.LOYALTY));
}
}
return simCombat;