[J21] Implement Skyshroud Ambush#14986
Conversation
| } | ||
| MageObjectReference controlledRef = new MageObjectReference(controlled, game); | ||
| MageObjectReference uncontrolledRef = new MageObjectReference(uncontrolled, game); | ||
| controlled.fight(uncontrolled, source, game); |
There was a problem hiding this comment.
Can't you use the standard FightTargetsEffect for the first effect, with the custom effect only for the second effect?
There was a problem hiding this comment.
I could be mistaken, but the problem is that I need to call processAction() and have it all run in one apply() block to correctly capture SBAs firing and being able to assess which creature(s) died, if any.
The alternative would be to force SBAs to fire before the second effect, but this feels hacky and incorrect
There was a problem hiding this comment.
processAction is called by the engine between effects. It's not a state based action check at all though
There was a problem hiding this comment.
I think you need a delayed trigger rather than a reflexive trigger.
Triggers when that creature dies, while the other creature is still on battlefield, but with very short duration, needs to be discarded after first try.
Linked to #8105