mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
fixed several cards which use an invalid UUID to find a player
This commit is contained in:
parent
77d792bbaf
commit
ed759d7a63
7 changed files with 7 additions and 7 deletions
|
|
@ -30,7 +30,7 @@ public class ReturnToHandAttachedEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getSourceId());
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
Permanent permanent = (Permanent) getValue("attachedTo");
|
||||
if (player == null || permanent == null) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue