mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
- Fixed #7561
This commit is contained in:
parent
8a16eda062
commit
82f40f04ae
1 changed files with 4 additions and 4 deletions
|
@ -196,11 +196,11 @@ class ValkiGodOfLiesReturnExiledCardEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
MageObject Valki = game.getObject(source.getSourceId());
|
||||
MageObject ValkiOnBattlefield = game.getLastKnownInformation(source.getSourceId(), Zone.BATTLEFIELD);
|
||||
if (controller != null
|
||||
&& Valki != null) {
|
||||
// Valki, God of Lies has changed zone, so make sure to get the exile zone information from its previous state
|
||||
UUID exileId = CardUtil.getExileZoneId(source.getSourceId().toString() + (Valki.getZoneChangeCounter(game) - 1), game);
|
||||
&& ValkiOnBattlefield != null) {
|
||||
// Valki, God of Lies has changed zone, so make sure to get the exile zone via its last known battlefield state
|
||||
UUID exileId = CardUtil.getExileZoneId(source.getSourceId().toString() + (ValkiOnBattlefield.getZoneChangeCounter(game)), game);
|
||||
ExileZone exile = game.getExile().getExileZone(exileId);
|
||||
Permanent sourcePermanent = game.getPermanentOrLKIBattlefield(source.getSourceId());
|
||||
if (exile != null
|
||||
|
|
Loading…
Reference in a new issue