forked from External/mage
[CMM] Implement Ugin's Mastery
This commit is contained in:
parent
8c245fafc4
commit
5f01f973cb
3 changed files with 134 additions and 10 deletions
|
|
@ -7,8 +7,6 @@ import mage.constants.Outcome;
|
|||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author cg5
|
||||
*/
|
||||
|
|
@ -29,14 +27,8 @@ public class TurnFaceUpTargetEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
UUID target = targetPointer.getFirst(game, source);
|
||||
if (target != null) {
|
||||
Permanent permanent = game.getPermanent(target);
|
||||
if (permanent != null) {
|
||||
return permanent.turnFaceUp(source, game, source.getControllerId());
|
||||
}
|
||||
}
|
||||
return false;
|
||||
Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||
return permanent != null && permanent.turnFaceUp(source, game, source.getControllerId());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue