mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fix a NPE in TokenAi when processing non-creature old style tokens.
This commit is contained in:
@@ -512,7 +512,7 @@ public class TokenAi extends SpellAbilityAi {
|
||||
// Apply static abilities and prune dead tokens
|
||||
final Game game = ai.getGame();
|
||||
ComputerUtilCard.applyStaticContPT(game, token, null);
|
||||
if (!notNull && token.getNetToughness() < 1) {
|
||||
if (!notNull && token.isCreature() && token.getNetToughness() < 1) {
|
||||
return null;
|
||||
} else {
|
||||
return token;
|
||||
|
||||
Reference in New Issue
Block a user