* Darksteel Reactor - Fixed possible NPE.

This commit is contained in:
LevelX2 2013-12-07 16:33:00 +01:00
parent 25a1843688
commit a783acb66e

View file

@ -89,8 +89,8 @@ class DarksteelReactorStateTriggeredAbility extends StateTriggeredAbility<Darkst
@Override @Override
public boolean checkTrigger(GameEvent event, Game game) { public boolean checkTrigger(GameEvent event, Game game) {
Permanent permanent = game.getPermanent(getSourceId()); Permanent permanent = game.getPermanent(this.getSourceId());
if(permanent.getCounters().getCount(CounterType.CHARGE) >= 20){ if(permanent != null && permanent.getCounters().getCount(CounterType.CHARGE) >= 20){
return true; return true;
} }
return false; return false;