mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Fixed Issue#53: AI casts Rancor, but Rancor goes to graveyard
This commit is contained in:
parent
0758f4bb72
commit
cc4d772483
3 changed files with 16 additions and 4 deletions
|
|
@ -28,16 +28,17 @@
|
|||
|
||||
package mage.target;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import mage.Constants.Outcome;
|
||||
import mage.Constants.Zone;
|
||||
import mage.abilities.Ability;
|
||||
import mage.filter.Filter;
|
||||
import mage.game.Game;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
|
|
@ -69,6 +70,7 @@ public interface Target extends Serializable {
|
|||
public boolean choose(Outcome outcome, UUID playerId, UUID sourceId, Game game);
|
||||
public void add(UUID id, Game game);
|
||||
public void remove(UUID targetId);
|
||||
public void updateTarget(UUID targetId, Game game);
|
||||
|
||||
public String getMessage();
|
||||
public String getTargetName();
|
||||
|
|
|
|||
|
|
@ -202,6 +202,11 @@ public abstract class TargetImpl<T extends TargetImpl<T>> implements Target {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateTarget(UUID id, Game game) {
|
||||
rememberZoneChangeCounter(id, game);
|
||||
}
|
||||
|
||||
private void rememberZoneChangeCounter(UUID id, Game game) {
|
||||
Card card = game.getCard(id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue