mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Eldrazi Mimic - Fixed that the P/T was not set if the triggering permanent left the battlefield meanwhile.
This commit is contained in:
parent
cf79baca2e
commit
1c3c8cafe6
5 changed files with 106 additions and 23 deletions
|
|
@ -5,6 +5,7 @@ import java.util.List;
|
|||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.cards.Card;
|
||||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
|
|
@ -98,4 +99,12 @@ public class FixedTarget implements TargetPointer {
|
|||
return zoneChangeCounter;
|
||||
}
|
||||
|
||||
public Permanent getTargetedPermanentOrLKIBattlefield(Game game) {
|
||||
Permanent permanent = game.getPermanentOrLKIBattlefield(targetId);
|
||||
if (permanent != null && permanent.getZoneChangeCounter(game) != zoneChangeCounter) {
|
||||
permanent = (Permanent) game.getLastKnownInformation(targetId, Zone.BATTLEFIELD, zoneChangeCounter);
|
||||
}
|
||||
return permanent;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue