mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Now Planeswalkers use counters for loyalty. Fixed Issue 69.
This commit is contained in:
parent
13497ec651
commit
d5c4ac371a
32 changed files with 169 additions and 64 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue