mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Fossil Find - Fixed card movement handling.
This commit is contained in:
parent
e367fe40b1
commit
e9f58d20a5
12 changed files with 410 additions and 24 deletions
|
|
@ -229,11 +229,11 @@ public abstract class AbilityImpl implements Ability {
|
|||
game.resetShortLivingLKI();
|
||||
/**
|
||||
* game.applyEffects() has to be done at least for every effect
|
||||
* that moves cards/permanent between zones, or chnages control
|
||||
* that moves cards/permanent between zones, or changes control
|
||||
* of objects so Static effects work as intened if dependant
|
||||
* from the moved objects zone it is in Otherwise for example
|
||||
* were static abilities with replacement effects deactivated to
|
||||
* late Example:
|
||||
* were static abilities with replacement effects deactivated
|
||||
* too late Example:
|
||||
* {@link org.mage.test.cards.replacement.DryadMilitantTest#testDiesByDestroy testDiesByDestroy}
|
||||
*/
|
||||
if (effect.applyEffectsAfter()) {
|
||||
|
|
|
|||
|
|
@ -74,6 +74,9 @@ public class FilterCard extends FilterObject<Card> {
|
|||
*/
|
||||
@Override
|
||||
public boolean match(Card card, Game game) {
|
||||
if (card == null) {
|
||||
return false;
|
||||
}
|
||||
if (card.isSplitCard()) {
|
||||
return super.match(((SplitCard) card).getLeftHalfCard(), game)
|
||||
|| super.match(((SplitCard) card).getRightHalfCard(), game);
|
||||
|
|
|
|||
|
|
@ -530,6 +530,12 @@ public class GameState implements Serializable, Copyable<GameState> {
|
|||
this.gameOver = true;
|
||||
}
|
||||
|
||||
// 608.2e
|
||||
public void processAction(Game game) {
|
||||
game.getState().handleSimultaneousEvent(game);
|
||||
applyEffects(game);
|
||||
}
|
||||
|
||||
public void applyEffects(Game game) {
|
||||
game.resetShortLivingLKI();
|
||||
for (Player player : players.values()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue