Fixed NPE in EntersBattlefieldAbility

This commit is contained in:
LevelX2 2012-09-28 17:44:19 +02:00
parent 1e5cf15a26
commit 123b3e1180

View file

@ -67,6 +67,11 @@ public class EntersBattlefieldAbility extends StaticAbility<EntersBattlefieldAbi
@Override @Override
public String getRule() { public String getRule() {
return (generateRule ? "{this} enters the battlefield " + super.getRule():""); if (generateRule != null) {
if (generateRule = false) {
return "";
}
}
return "{this} enters the battlefield " + super.getRule();
} }
} }