TransformAbility fix.

This commit is contained in:
magenoxx 2012-03-26 00:41:53 +04:00
parent 0754cd91d0
commit 569faf8fd3

View file

@ -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;