Riddlesmith fix

This commit is contained in:
Loki 2011-01-20 23:14:37 +02:00
parent 92a0c2f20e
commit a314c40206

View file

@ -86,7 +86,7 @@ class RiddlesmithTriggeredAbility extends TriggeredAbilityImpl<RiddlesmithTrigge
@Override @Override
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
if (event.getType() == GameEvent.EventType.SPELL_CAST) { if (event.getType() == GameEvent.EventType.SPELL_CAST && event.getPlayerId().equals(this.getControllerId())) {
Spell spell = game.getStack().getSpell(event.getTargetId()); Spell spell = game.getStack().getSpell(event.getTargetId());
if (spell != null && spell.getCardType().contains(CardType.ARTIFACT)) { if (spell != null && spell.getCardType().contains(CardType.ARTIFACT)) {
return true; return true;