Merge pull request #4732 from use/aurelia-token-copy-fix

Fix: multiple token copies of Aurelia didn't trigger additional combat
This commit is contained in:
LevelX2 2018-04-10 10:33:42 +02:00 committed by GitHub
commit de9dc773a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,6 +48,7 @@ import mage.filter.common.FilterControlledCreaturePermanent;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.events.GameEvent.EventType;
import mage.game.permanent.Permanent;
/**
*
@ -118,7 +119,7 @@ class AureliaAttacksTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getSourceId().equals(this.getSourceId()) ) {
Card sourceCard = game.getCard(getSourceId());
Permanent sourceCard = game.getPermanent(getSourceId());
Integer amountAttacks = (Integer) game.getState().getValue(getValueKey(sourceCard, game));
if (amountAttacks == null || amountAttacks < 1) {
if (amountAttacks == null) {