mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
- [NEO] added Eater of Virtue
This commit is contained in:
parent
9f68d950b9
commit
b83d76bb08
3 changed files with 207 additions and 0 deletions
|
|
@ -110,6 +110,19 @@ public class DiesAttachedTriggeredAbility extends TriggeredAbilityImpl {
|
|||
}
|
||||
}
|
||||
}
|
||||
// set targetpointer to the creature that died
|
||||
if (setTargetPointer == SetTargetPointer.CARD
|
||||
|| setTargetPointer == SetTargetPointer.PERMANENT) {
|
||||
Permanent attachment = game.getPermanentOrLKIBattlefield(getSourceId());
|
||||
if (attachment != null
|
||||
&& attachment.getAttachedTo() != null) {
|
||||
Permanent attachedTo = (Permanent) game.getLastKnownInformation(attachment.getAttachedTo(),
|
||||
Zone.BATTLEFIELD, attachment.getAttachedToZoneChangeCounter());
|
||||
if (attachedTo != null) {
|
||||
getEffects().setTargetPointer(new FixedTarget(attachedTo.getId()));
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue