mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed NPE
This commit is contained in:
@@ -94,7 +94,7 @@ public class CountersPutAi extends SpellAbilityAi {
|
||||
// TODO handle proper calculation of X values based on Cost
|
||||
int amount = AbilityUtils.calculateAmount(source, amountStr, sa);
|
||||
|
||||
if (sa.getParam("AILogic").equals("Fight")) {
|
||||
if ("Fight".equals(sa.getParam("AILogic"))) {
|
||||
int nPump = 0;
|
||||
if (type.equals("P1P1")) {
|
||||
nPump = amount;
|
||||
|
||||
@@ -23,7 +23,7 @@ public class PeekAndRevealAi extends SpellAbilityAi {
|
||||
if (sa instanceof AbilityStatic) {
|
||||
return false;
|
||||
}
|
||||
if (sa.getParam("AILogic").equals("Main2")) {
|
||||
if ("Main2".equals(sa.getParam("AILogic"))) {
|
||||
if (aiPlayer.getGame().getPhaseHandler().getPhase().isBefore(PhaseType.MAIN2)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user