mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
TransformAbility fix.
This commit is contained in:
parent
0754cd91d0
commit
569faf8fd3
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ class TransformEffect extends ContinuousEffectImpl<TransformEffect> {
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
Permanent permanent = game.getPermanent(source.getSourceId());
|
Permanent permanent = game.getPermanent(source.getSourceId());
|
||||||
|
|
||||||
|
if (permanent == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!permanent.isTransformed()) {
|
if (!permanent.isTransformed()) {
|
||||||
// keep original card
|
// keep original card
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue