mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Fixed Dormant Gomazoa
This commit is contained in:
parent
d895b3e8d0
commit
5cc8901e07
1 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,6 @@ import mage.game.Game;
|
|||
import mage.game.stack.Spell;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author jeffwadsworth
|
||||
*/
|
||||
public class BecomesTargetControllerSpellTriggeredAbility extends TriggeredAbilityImpl<BecomesTargetControllerSpellTriggeredAbility> {
|
||||
|
@ -58,14 +57,15 @@ public class BecomesTargetControllerSpellTriggeredAbility extends TriggeredAbili
|
|||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getType() == EventType.TARGETED) {
|
||||
if (event.getPlayerId().equals(controllerId)) {
|
||||
if (event.getTargetId().equals(controllerId)) {
|
||||
if (game.getObject(event.getSourceId()) instanceof Spell) {
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "When you become the target of a spell, " + super.getRule();
|
||||
|
|
Loading…
Reference in a new issue