mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
Merge branch 'master' of https://github.com/magefree/mage
This commit is contained in:
commit
7ba3a8f637
5 changed files with 59 additions and 12 deletions
|
|
@ -20,7 +20,6 @@ import mage.abilities.hint.HintUtils;
|
|||
import mage.cards.*;
|
||||
import mage.constants.*;
|
||||
import mage.counters.Counter;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.Filter;
|
||||
import mage.filter.predicate.mageobject.NamePredicate;
|
||||
import mage.game.CardState;
|
||||
|
|
@ -1381,7 +1380,7 @@ public final class CardUtil {
|
|||
* @param game
|
||||
* @param source
|
||||
* @param controller
|
||||
* @param card can be card or permanent
|
||||
* @param card can be card or permanent
|
||||
* @param toZone
|
||||
* @param counter
|
||||
*/
|
||||
|
|
@ -1390,6 +1389,13 @@ public final class CardUtil {
|
|||
throw new IllegalArgumentException("Wrong code usage - method doesn't support moving to battlefield zone");
|
||||
}
|
||||
|
||||
// workaround:
|
||||
// in ZONE_CHANGE replace events you must set new zone by event's setToZone,
|
||||
// BUT for counter effect you need to complete zone change event first (so moveCards calls here)
|
||||
// TODO: must be fixed someday by:
|
||||
// * or by new event ZONE_CHANGED to apply counter effect on it
|
||||
// * or by counter effects applier in ZONE_CHANGE event (see copy or token as example)
|
||||
|
||||
// move to zone
|
||||
if (!controller.moveCards(card, toZone, source, game)) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue