Card-Forge / Card-Forge/forge

[Adventure] Warzone Duplicator + Xira's Hive Crash

Open
#7,515 2 comments 0 reactions 4 assignees Claimed by @tehdiplomat View on GitHub
Adventure BUG keep
Dominant language
Java
Stars
2.7k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
158

Description

**Describe the bug**
I had Xira's Hive in play from Xira's Fancy Hat. AI played Warzone Duplicator, prototype-mode, targeting Xira's Hive. Game crashed.

**To Reproduce**
Steps to reproduce the behavior:
Not sure. Xira's Hive is an Adventure-mode only card. I ran into this issue in the Djinn's Palace dungeon against the Blue Golem, which has 1x Warzone Duplicator in its deck.

**Expected behavior**
Also not sure.

**Desktop (please complete the following information):**
- OS: Windows 11
- Version 2.0.04-SNAPSHOT-04.12

**Additional context**
Java error message is here:
Game-26 > java.lang.NullPointerException: Cannot invoke "forge.item.IPaperCard.getRules()" because "cp" is null
at forge.game.card.CardFactory.getCard(CardFactory.java:180)
at forge.game.card.CardFactory.getCard(CardFactory.java:177)
at forge.game.card.Card.fromPaperCard(Card.java:7710)
at forge.game.ability.effects.MakeCardEffect.resolve(MakeCardEffect.java:155)
at forge.game.spellability.AbilitySub.resolve(AbilitySub.java:106)
at forge.game.ability.AbilityUtils.resolveApiAbility(AbilityUtils.java:1420)
at forge.game.ability.AbilityUtils.resolveSubAbilities(AbilityUtils.java:1400)
at forge.game.ability.AbilityUtils.resolveApiAbility(AbilityUtils.java:1426)
at forge.game.ability.AbilityUtils.resolve(AbilityUtils.java:1356)
at forge.ai.ComputerUtil.playNoStack(ComputerUtil.java:266)
at forge.ai.PlayerControllerAi.playSpellAbilityNoStack(PlayerControllerAi.java:685)
at forge.game.trigger.WrappedAbility.resolve(WrappedAbility.java:450)
at forge.game.ability.AbilityUtils.resolveApiAbility(AbilityUtils.java:1420)
at forge.game.ability.AbilityUtils.resolve(AbilityUtils.java:1356)
at forge.game.zone.MagicStack.resolveStack(MagicStack.java:625)
at forge.game.phase.PhaseHandler.startFirstTurn(PhaseHandler.java:1124)
at forge.game.GameAction.startGame(GameAction.java:2327)
at forge.game.Match.startGame(Match.java:90)
at forge.gamemodes.match.HostedMatch.lambda$startGame$1(HostedMatch.java:259)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.