mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Fixed a possible NPE in TokenAI.
This commit is contained in:
@@ -187,7 +187,7 @@ public class TokenAi extends SpellAbilityAi {
|
|||||||
tgt.addTarget(ai);
|
tgt.addTarget(ai);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.tokenAmount.equals("X") || this.tokenPower.equals("X") || this.tokenToughness.equals("X")) {
|
if ("X".equals(this.tokenAmount) || "X".equals(this.tokenPower) || "X".equals(this.tokenToughness)) {
|
||||||
int x = AbilityUtils.calculateAmount(source, this.tokenAmount, sa);
|
int x = AbilityUtils.calculateAmount(source, this.tokenAmount, sa);
|
||||||
if (source.getSVar("X").equals("Count$xPaid")) {
|
if (source.getSVar("X").equals("Count$xPaid")) {
|
||||||
// Set PayX here to maximum value.
|
// Set PayX here to maximum value.
|
||||||
|
|||||||
Reference in New Issue
Block a user