Awaken - Fixed a problem with the rule text of cards with Awaken.

This commit is contained in:
LevelX2 2016-06-05 12:35:00 +02:00
parent 89d9762ea1
commit 187866c979

View file

@ -87,6 +87,7 @@ public class AwakenAbility extends SpellAbility {
public AwakenAbility(final AwakenAbility ability) { public AwakenAbility(final AwakenAbility ability) {
super(ability); super(ability);
this.awakenValue = ability.awakenValue; this.awakenValue = ability.awakenValue;
this.rule = ability.rule;
} }
@Override @Override
@ -138,7 +139,7 @@ public class AwakenAbility extends SpellAbility {
effect.setTargetPointer(fixedTarget); effect.setTargetPointer(fixedTarget);
return effect.apply(game, source); return effect.apply(game, source);
} }
} else { // source should never be null, but we are seeing a lot of NPEs from this section } else // source should never be null, but we are seeing a lot of NPEs from this section
if (source == null) { if (source == null) {
logger.fatal("Source was null in AwakenAbility: Create a bug report or fix the source code"); logger.fatal("Source was null in AwakenAbility: Create a bug report or fix the source code");
} else if (source.getTargets() == null) { } else if (source.getTargets() == null) {
@ -150,7 +151,6 @@ public class AwakenAbility extends SpellAbility {
} }
} }
} }
}
return true; return true;
} }
} }