* Multiform Wonder - Fixed the nor working boost effect.

This commit is contained in:
LevelX2 2016-09-21 22:56:31 +02:00
parent a46bbfcd60
commit 716377cc32

View file

@ -187,10 +187,10 @@ class MultiformWonder2Effect extends ContinuousEffectImpl {
@Override @Override
public boolean apply(Game game, Ability source) { public boolean apply(Game game, Ability source) {
Permanent target = game.getPermanent(source.getFirstTarget()); Permanent sourceObject = game.getPermanent(source.getSourceId());
if (target != null) { if (sourceObject != null) {
target.addPower(power); sourceObject.addPower(power);
target.addToughness(toughness); sourceObject.addToughness(toughness);
return true; return true;
} }
return false; return false;