mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fixed NPE in EntersBattlefieldAbility
This commit is contained in:
parent
1e5cf15a26
commit
123b3e1180
1 changed files with 6 additions and 1 deletions
|
@ -67,6 +67,11 @@ public class EntersBattlefieldAbility extends StaticAbility<EntersBattlefieldAbi
|
|||
|
||||
@Override
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue