mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +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
|
@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;
|
||||||
|
|
Loading…
Reference in a new issue