- Fixed CopySpellAbilityAi (e.g. Replicate).

- TODO: figure out why the AI won't announce the Replicate amount correctly (always says Replicate=0).
This commit is contained in:
Agetian
2017-07-21 19:23:30 +00:00
parent 60a63a5cf0
commit fb58a75869

View File

@@ -18,7 +18,7 @@ public class CopySpellAbilityAi extends SpellAbilityAi {
@Override @Override
protected boolean doTriggerAINoCost(Player aiPlayer, SpellAbility sa, boolean mandatory) { protected boolean doTriggerAINoCost(Player aiPlayer, SpellAbility sa, boolean mandatory) {
// the AI should not miss mandatory activations (e.g. Precursor Golem trigger) // the AI should not miss mandatory activations (e.g. Precursor Golem trigger)
return sa.isMandatory() || "Always".equals(sa.getParam("AILogic")); return mandatory || "Always".equals(sa.getParam("AILogic"));
} }
@Override @Override