mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user