mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Awaken - Fixed a problem with the rule text of cards with Awaken.
This commit is contained in:
parent
89d9762ea1
commit
187866c979
1 changed files with 12 additions and 12 deletions
|
@ -87,6 +87,7 @@ public class AwakenAbility extends SpellAbility {
|
|||
public AwakenAbility(final AwakenAbility ability) {
|
||||
super(ability);
|
||||
this.awakenValue = ability.awakenValue;
|
||||
this.rule = ability.rule;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -138,7 +139,7 @@ public class AwakenAbility extends SpellAbility {
|
|||
effect.setTargetPointer(fixedTarget);
|
||||
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) {
|
||||
logger.fatal("Source was null in AwakenAbility: Create a bug report or fix the source code");
|
||||
} else if (source.getTargets() == null) {
|
||||
|
@ -150,7 +151,6 @@ public class AwakenAbility extends SpellAbility {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue