Refactor: added docs for a copy stack object code (#7662);

This commit is contained in:
Oleg Agafonov 2021-08-15 17:12:59 +04:00
parent c328c71ef9
commit f21c492ce2
16 changed files with 136 additions and 85 deletions

View file

@ -13,5 +13,12 @@ public interface StackObjectCopyApplier extends Serializable {
void modifySpell(StackObject stackObject, Game game);
MageObjectReferencePredicate getNextPredicate();
/**
* For multi copies: allows change new target filter for each next copy (e.g. add some restict)
* Return null to use same target type as original spell
*
* @param copyNumber current number of copy, starts with 1
* @return
*/
MageObjectReferencePredicate getNextNewTargetType(int copyNumber);
}