minor fix (for ai)

This commit is contained in:
magenoxx 2012-05-22 09:48:42 +04:00
parent 910476da32
commit 2af92b5bc2

View file

@ -89,7 +89,7 @@ class ChampionOfLambholtEffect extends RestrictionEffect<ChampionOfLambholtEffec
@Override
public boolean applies(Permanent permanent, Ability source, Game game) {
Permanent sourcePermanent = game.getPermanent(source.getSourceId());
if (sourcePermanent != null) {
if (sourcePermanent != null && permanent != null) {
if (permanent.getPower().getValue() < sourcePermanent.getPower().getValue()) {
return true;
}