Fixed Planar Void exiling itself

Its text specifies "Whenever another card..."
This commit is contained in:
L_J 2018-04-19 17:01:02 +00:00 committed by GitHub
parent e9766b2b06
commit 8f8e2758f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ class PlanarVoidTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
ZoneChangeEvent zEvent = (ZoneChangeEvent) event;
if (zEvent.getToZone() == Zone.GRAVEYARD) {
if (zEvent.getToZone() == Zone.GRAVEYARD && !event.getTargetId().equals(getSourceId())) {
Card card = game.getCard(event.getTargetId());
if (card != null) {
this.getEffects().get(0).setTargetPointer(new FixedTarget(card.getId()));