mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
[MMQ] Ramosian Rally
Also fixed order of check in GameImpl for attached player to prevent possible NPE.
This commit is contained in:
parent
df0cd60fbc
commit
f3c0d3fce0
3 changed files with 81 additions and 1 deletions
|
|
@ -1838,7 +1838,7 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
}
|
||||
} else if (target instanceof TargetPlayer) {
|
||||
Player attachedToPlayer = getPlayer(perm.getAttachedTo());
|
||||
if (attachedToPlayer.hasLost() || attachedToPlayer == null) {
|
||||
if (attachedToPlayer == null || attachedToPlayer.hasLost()) {
|
||||
if (movePermanentToGraveyardWithInfo(perm)) {
|
||||
somethingHappened = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue