forked from External/mage
Fixed NPE in ManaPaid events usage
This commit is contained in:
parent
ad3b76dae6
commit
1bc4b9d675
2 changed files with 3 additions and 3 deletions
|
|
@ -59,10 +59,10 @@ public class ManaPaidSourceWatcher extends Watcher {
|
|||
|
||||
private void increment(MageObject sourceObject, ManaType manaType, Game game) {
|
||||
total++;
|
||||
if (sourceObject.hasSubtype(SubType.TREASURE, game)) {
|
||||
if (sourceObject != null && sourceObject.hasSubtype(SubType.TREASURE, game)) {
|
||||
treasure++;
|
||||
}
|
||||
if (!sourceObject.isSnow()) {
|
||||
if (sourceObject != null && !sourceObject.isSnow()) {
|
||||
return;
|
||||
}
|
||||
switch (manaType) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue