mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
fixed Yannik, Scavenging Sentinel
This commit is contained in:
parent
15d102fb9c
commit
f682650650
1 changed files with 3 additions and 2 deletions
|
|
@ -24,6 +24,7 @@ import mage.game.permanent.Permanent;
|
|||
import mage.players.Player;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetCreaturePermanentAmount;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
import java.util.UUID;
|
||||
|
|
@ -105,9 +106,9 @@ class YannikScavengingSentinelEffect extends OneShotEffect {
|
|||
int power = permanent.getPower().getValue();
|
||||
new ExileTargetEffect(CardUtil.getExileZoneId(
|
||||
game, source.getSourceId(), source.getSourceObjectZoneChangeCounter()
|
||||
), permanent.getIdName()).apply(game, source);
|
||||
), permanent.getIdName()).setTargetPointer(new FixedTarget(permanent, game)).apply(game, source);
|
||||
game.addDelayedTriggeredAbility(new OnLeaveReturnExiledToBattlefieldAbility(), source);
|
||||
if (game.getState().getZone(permanent.getId()) == Zone.EXILED) {
|
||||
if (game.getState().getZone(permanent.getId()) != Zone.BATTLEFIELD) {
|
||||
game.addDelayedTriggeredAbility(new YannikScavengingSentinelReflexiveTriggeredAbility(power), source);
|
||||
return new SendOptionUsedEventEffect().apply(game, source);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue