Fixed Dormant Gomazoa

This commit is contained in:
magenoxx 2012-06-06 02:17:52 +04:00
parent d895b3e8d0
commit 5cc8901e07

View file

@ -37,7 +37,6 @@ import mage.game.Game;
import mage.game.stack.Spell;
/**
*
* @author jeffwadsworth
*/
public class BecomesTargetControllerSpellTriggeredAbility extends TriggeredAbilityImpl<BecomesTargetControllerSpellTriggeredAbility> {
@ -58,7 +57,7 @@ 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;
}
@ -66,6 +65,7 @@ public class BecomesTargetControllerSpellTriggeredAbility extends TriggeredAbili
}
return false;
}
@Override
public String getRule() {
return "When you become the target of a spell, " + super.getRule();