mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
prevent NPE
This commit is contained in:
@@ -1663,7 +1663,7 @@ public class ComputerUtil {
|
||||
}
|
||||
|
||||
if (saviourApi == ApiType.PutCounter || saviourApi == ApiType.PutCounterAll) {
|
||||
if (saviour != null && saviour.getParam("CounterType").equals("P1P1")) {
|
||||
if (saviour != null && saviour.hasParam("CounterType") && saviour.getParam("CounterType").equals("P1P1")) {
|
||||
toughness = AbilityUtils.calculateAmount(saviour.getHostCard(), saviour.getParamOrDefault("CounterNum", "1"), saviour);
|
||||
} else {
|
||||
return threatened;
|
||||
|
||||
Reference in New Issue
Block a user