mirror of
https://github.com/correl/mage.git
synced 2025-03-17 01:06:26 -09: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;
|
import mage.game.stack.Spell;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author jeffwadsworth
|
* @author jeffwadsworth
|
||||||
*/
|
*/
|
||||||
public class BecomesTargetControllerSpellTriggeredAbility extends TriggeredAbilityImpl<BecomesTargetControllerSpellTriggeredAbility> {
|
public class BecomesTargetControllerSpellTriggeredAbility extends TriggeredAbilityImpl<BecomesTargetControllerSpellTriggeredAbility> {
|
||||||
|
@ -58,7 +57,7 @@ public class BecomesTargetControllerSpellTriggeredAbility extends TriggeredAbili
|
||||||
@Override
|
@Override
|
||||||
public boolean checkTrigger(GameEvent event, Game game) {
|
public boolean checkTrigger(GameEvent event, Game game) {
|
||||||
if (event.getType() == EventType.TARGETED) {
|
if (event.getType() == EventType.TARGETED) {
|
||||||
if (event.getPlayerId().equals(controllerId)) {
|
if (event.getTargetId().equals(controllerId)) {
|
||||||
if (game.getObject(event.getSourceId()) instanceof Spell) {
|
if (game.getObject(event.getSourceId()) instanceof Spell) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -66,6 +65,7 @@ public class BecomesTargetControllerSpellTriggeredAbility extends TriggeredAbili
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getRule() {
|
public String getRule() {
|
||||||
return "When you become the target of a spell, " + super.getRule();
|
return "When you become the target of a spell, " + super.getRule();
|
||||||
|
|
Loading…
Add table
Reference in a new issue