- Fixed bug with Clip Wings

This commit is contained in:
excessum
2016-04-23 05:55:54 +00:00
parent 52397a65b1
commit c97791a144

View File

@@ -111,7 +111,10 @@ public class SacrificeAi extends SpellAbilityAi {
final String valid = sa.getParam("SacValid");
if (defined == null) {
// Self Sacrifice.
} else if (defined.equals("Player") || (defined.equals("Opponent") && !sa.isTrigger())) {
} else if (defined.equals("Player")
|| ((defined.equals("Player.Opponent") || defined.equals("Opponent")) && !sa.isTrigger())) {
// is either "Defined$ Player.Opponent" and "Defined$ Opponent" obsolete?
// If Sacrifice hits both players:
// Only cast it if Human has the full amount of valid
// Only cast it if AI doesn't have the full amount of Valid