mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Attempt to fix a potential NPE in PumpAiBase for cards in alternate modes.
This commit is contained in:
@@ -705,7 +705,7 @@ public abstract class PumpAiBase extends SpellAbilityAi {
|
||||
|
||||
public Card pumpedCreature(final Player ai, final SpellAbility sa, final Card c, final int d, final int a,
|
||||
final List<String> keywords) {
|
||||
Card pumped = c.isToken() || c.isFaceDown() ? CardFactory.copyStats(c, ai) : CardFactory.getCard(c.getPaperCard(), ai);
|
||||
Card pumped = CardFactory.copyCard(c, true);
|
||||
pumped.setSickness(c.hasSickness());
|
||||
final long timestamp = c.getGame().getNextTimestamp();
|
||||
final ArrayList<String> kws = new ArrayList<String>();
|
||||
|
||||
Reference in New Issue
Block a user