mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +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
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = game.getPermanent(source.getSourceId());
|
||||
|
||||
if (permanent == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!permanent.isTransformed()) {
|
||||
// keep original card
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue