mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Riddlesmith fix
This commit is contained in:
parent
92a0c2f20e
commit
a314c40206
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue