ZoneExchangeAi: AI should also not activate it if it does not own the first card

This commit is contained in:
Hanmac
2016-08-04 09:41:53 +00:00
parent e3184c9a29
commit 987af3d0fd

View File

@@ -34,7 +34,7 @@ public class ZoneExchangeAi extends SpellAbilityAi {
list = CardLists.getValidCards(list, type, ai, source); list = CardLists.getValidCards(list, type, ai, source);
} }
object2 = ComputerUtilCard.getBestAI(list); object2 = ComputerUtilCard.getBestAI(list);
if (object1 == null || object2 == null || !object1.isInZone(zone1)) { if (object1 == null || object2 == null || !object1.isInZone(zone1) || !object1.getOwner().equals(ai)) {
return false; return false;
} }
if (type.equals("Aura")) { if (type.equals("Aura")) {