mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 06:52:02 -08:00
fixed Rona, Disciple of Gix not working after leaving and re-entering the battlefield
This commit is contained in:
parent
0082b3581b
commit
40a99f2397
1 changed files with 2 additions and 2 deletions
|
|
@ -121,9 +121,9 @@ class RonaDiscipleOfGixPlayNonLandEffect extends AsThoughEffectImpl {
|
|||
public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {
|
||||
if (affectedControllerId.equals(source.getControllerId())) {
|
||||
Card card = game.getCard(objectId);
|
||||
MageObject sourceObject = source.getSourceObject(game);
|
||||
MageObject sourceObject = game.getObject(source.getSourceId());
|
||||
if (card != null && !card.isLand() && sourceObject != null) {
|
||||
UUID exileId = CardUtil.getExileZoneId(game, source.getSourceId(), source.getSourceObjectZoneChangeCounter());
|
||||
UUID exileId = CardUtil.getExileZoneId(game, source.getSourceId(), sourceObject.getZoneChangeCounter(game));
|
||||
if (exileId != null) {
|
||||
ExileZone exileZone = game.getState().getExile().getExileZone(exileId);
|
||||
return exileZone != null && exileZone.contains(objectId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue