game: fixed miss state triggers check in multi-steps abilities/effects (#10564)

This commit is contained in:
Oleg Agafonov 2023-07-05 09:52:38 +04:00
parent b66189d3da
commit f26b1470fa
4 changed files with 31 additions and 8 deletions

View file

@ -465,6 +465,13 @@ public interface Game extends MageItem, Serializable, Copyable<Game> {
UUID fireReflexiveTriggeredAbility(ReflexiveTriggeredAbility reflexiveAbility, Ability source);
/**
* Inner game engine call to reset game objects to actual versions
* (reset all objects and apply all effects due layer system)
* <p>
* Warning, if you need to process object moves in the middle of the effect/ability
* then call game.getState().processAction(game) instead
*/
void applyEffects();
boolean checkStateAndTriggered();