mirror of
https://github.com/correl/mage.git
synced 2025-04-12 09:11:05 -09:00
- Fixed #6230
This commit is contained in:
parent
9a804810e4
commit
285ed5801f
1 changed files with 13 additions and 4 deletions
|
@ -12,8 +12,10 @@ import mage.game.Game;
|
||||||
import mage.game.events.GameEvent;
|
import mage.game.events.GameEvent;
|
||||||
import mage.game.events.ZoneChangeEvent;
|
import mage.game.events.ZoneChangeEvent;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
import mage.abilities.effects.common.DrawCardTargetEffect;
|
||||||
import mage.game.permanent.Permanent;
|
import mage.game.permanent.Permanent;
|
||||||
|
import mage.players.Player;
|
||||||
|
import mage.target.targetpointer.FixedTarget;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author TheElk801
|
* @author TheElk801
|
||||||
|
@ -82,9 +84,16 @@ class HatefulEidolonTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
auraCount += 1;
|
auraCount += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.getEffects().clear();
|
Player controller = game.getPlayer(controllerId);
|
||||||
this.addEffect(new DrawCardSourceControllerEffect(auraCount));
|
if (controller != null
|
||||||
return true;
|
&& controller.canRespond()) {
|
||||||
|
this.getEffects().clear();
|
||||||
|
DrawCardTargetEffect drawCard = new DrawCardTargetEffect(auraCount);
|
||||||
|
drawCard.setTargetPointer(new FixedTarget(controllerId));
|
||||||
|
this.addEffect(drawCard);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue