AiController: need to set triggered Object for ETB check

This commit is contained in:
Hans Mackowiak
2021-05-16 09:18:31 +02:00
parent 9527a33a58
commit d2449c181a

View File

@@ -310,6 +310,9 @@ public class AiController {
} }
exSA.setTrigger(tr); exSA.setTrigger(tr);
// need to set TriggeredObject
exSA.setTriggeringObject(AbilityKey.Card, card);
// for trigger test, need to ignore the conditions // for trigger test, need to ignore the conditions
SpellAbilityCondition cons = exSA.getConditions(); SpellAbilityCondition cons = exSA.getConditions();