DamageEachEffect refactor + MOM Tandem Takedown / MOC Great Aerie (#2814)

* DamageEachEffect refactor

* AiAttackController refactor param

* SpellAbilityEffect.tokenizeString use joinHomogenous

* refactor old cards, add tandem_takedown.txt

* the_great_aerie.txt + Support + refactor grim_contest.txt
This commit is contained in:
Northmoc
2023-04-07 08:13:55 -04:00
committed by GitHub
parent 4da4a333d9
commit 1f82420261
18 changed files with 83 additions and 111 deletions

View File

@@ -257,7 +257,7 @@ public class AiAttackController {
continue;
}
if (sa.getApi() == ApiType.EachDamage && "TriggeredAttacker".equals(sa.getParam("DefinedPlayers"))) {
if (sa.getApi() == ApiType.EachDamage && "TriggeredAttacker".equals(sa.getParam("Defined"))) {
List<Card> valid = CardLists.getValidCards(c.getController().getCreaturesInPlay(), sa.getParam("ValidCards"), c.getController(), c, sa);
// TODO: this assumes that 1 damage is dealt per creature. Improve this to check the parameter/X to determine
// how much damage is dealt by each of the creatures in the valid list.

View File

@@ -24,10 +24,6 @@ import forge.util.MyRandom;
public class FightAi extends SpellAbilityAi {
@Override
protected boolean checkAiLogic(final Player ai, final SpellAbility sa, final String aiLogic) {
if (sa.hasParam("FightWithToughness")) {
// TODO: add ailogic
return false;
}
return super.checkAiLogic(ai, sa, aiLogic);
}