mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Darksteel Reactor - Fixed possible NPE.
This commit is contained in:
parent
25a1843688
commit
a783acb66e
1 changed files with 2 additions and 2 deletions
|
@ -89,8 +89,8 @@ class DarksteelReactorStateTriggeredAbility extends StateTriggeredAbility<Darkst
|
|||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
Permanent permanent = game.getPermanent(getSourceId());
|
||||
if(permanent.getCounters().getCount(CounterType.CHARGE) >= 20){
|
||||
Permanent permanent = game.getPermanent(this.getSourceId());
|
||||
if(permanent != null && permanent.getCounters().getCount(CounterType.CHARGE) >= 20){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue