mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
Fixed Issue#35. All tests pass now.
This commit is contained in:
parent
aa071912cb
commit
c61e4f2b32
13 changed files with 230 additions and 18 deletions
|
|
@ -29,7 +29,6 @@
|
|||
package mage.game.permanent;
|
||||
|
||||
import mage.Constants.Zone;
|
||||
import mage.abilities.effects.ContinuousEffect;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.LevelerCard;
|
||||
import mage.game.Game;
|
||||
|
|
@ -174,11 +173,7 @@ public class PermanentCard extends PermanentImpl<PermanentCard> {
|
|||
ZoneChangeEvent event = new ZoneChangeEvent(this, sourceId, controllerId, fromZone, toZone);
|
||||
if (!game.replaceEvent(event)) {
|
||||
if (event.getFromZone().equals(Zone.BATTLEFIELD)) {
|
||||
for (ContinuousEffect effect : game.getContinuousEffects().getLayeredEffects(game)) {
|
||||
if (effect.getAffectedObjects().contains(getId())) {
|
||||
effect.getAffectedObjects().remove(getId());
|
||||
}
|
||||
}
|
||||
game.resetForSourceId(getId());
|
||||
}
|
||||
Player owner = game.getPlayer(ownerId);
|
||||
game.rememberLKI(objectId, Zone.BATTLEFIELD, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue