mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Fixed Beastmaster Ascension not working. Try not to use names for counters, use CounterType instead.
This commit is contained in:
parent
60a865ed19
commit
86d306429c
3 changed files with 5 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ public class CountersCount implements DynamicValue {
|
|||
p = (Permanent) game.getLastKnownInformation(sourceAbility.getSourceId(), Constants.Zone.BATTLEFIELD);
|
||||
}
|
||||
if (p != null) {
|
||||
return p.getCounters().getCount(counter.getName());
|
||||
return p.getCounters().getCount(counter);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@ import mage.abilities.common.ZoneChangeTriggeredAbility;
|
|||
import mage.abilities.keyword.LevelAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.LevelerCard;
|
||||
import mage.counters.CounterType;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.events.ZoneChangeEvent;
|
||||
|
|
@ -100,7 +101,7 @@ public class PermanentCard extends PermanentImpl<PermanentCard> {
|
|||
this.power = card.getPower();
|
||||
this.toughness = card.getToughness();
|
||||
if (card instanceof LevelerCard) {
|
||||
LevelAbility level = ((LevelerCard)card).getLevel(this.getCounters().getCount("Level"));
|
||||
LevelAbility level = ((LevelerCard)card).getLevel(this.getCounters().getCount(CounterType.LEVEL));
|
||||
if (level != null) {
|
||||
this.power.setValue(level.getPower());
|
||||
this.toughness.setValue(level.getToughness());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue