From 29eb93ad15a0a58b46c9675b6ef1d7974fafa13c Mon Sep 17 00:00:00 2001
From: jeffwadsworth <jeff@delmarus.com>
Date: Mon, 6 Jul 2020 11:50:40 -0500
Subject: [PATCH] - Fixed #6781

---
 .../abilities/effects/common/combat/CantAttackYouEffect.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Mage/src/main/java/mage/abilities/effects/common/combat/CantAttackYouEffect.java b/Mage/src/main/java/mage/abilities/effects/common/combat/CantAttackYouEffect.java
index d13c067608..cd6ee096fc 100644
--- a/Mage/src/main/java/mage/abilities/effects/common/combat/CantAttackYouEffect.java
+++ b/Mage/src/main/java/mage/abilities/effects/common/combat/CantAttackYouEffect.java
@@ -35,6 +35,11 @@ public class CantAttackYouEffect extends RestrictionEffect {
         if (defenderId == null) {
             return true;
         }
+        // A planeswalker controlled by the controller is the defender
+        if (game.getPermanent(defenderId) != null) {
+            return !game.getPermanent(defenderId).getControllerId().equals(source.getControllerId());
+        }
+        // The controller is the defender
         return !defenderId.equals(source.getControllerId());
     }
 }