mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
ZoneExchangeAi: AI should also not activate it if it does not own the first card
This commit is contained in:
@@ -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")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user