- "Crazy Cob" no longer crashes the game, when an Orc is killed.

This commit is contained in:
marcin.sciesinski
2017-11-23 19:51:15 -08:00
parent 15cdf7aaea
commit 681c25f8a5
2 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
<pre style="font-size:80%">
<b>23 Nov. 2017</b>
- "Crazy Cob" no longer crashes the game, when an Orc is killed.
<b>14 Nov. 2017</b>
- Fixed errors with cards that have per turn limit.
- "Battle of Azanulbizar" no longer crashes the game, when a Dwarf follower is present.

View File

@@ -18,6 +18,7 @@ import com.gempukku.lotro.logic.modifiers.StrengthModifier;
import com.gempukku.lotro.logic.modifiers.ModifiersQuerying;
import com.gempukku.lotro.logic.timing.EffectResult;
import com.gempukku.lotro.logic.timing.results.DiscardCardsFromPlayResult;
import com.gempukku.lotro.logic.timing.results.ForEachKilledResult;
import java.util.Collections;
import java.util.List;
@@ -62,7 +63,7 @@ public class Card31_057 extends AbstractMinion {
&& !PlayConditions.isPhase(game, Phase.REGROUP)
&& PlayConditions.canPlayFromHand(playerId, game, -2, Race.SPIDER)) {
final OptionalTriggerAction action = new OptionalTriggerAction(self);
action.setTriggerIdentifier(self.getCardId() + "-" + ((DiscardCardsFromPlayResult) effectResult).getDiscardedCard().getCardId());
action.setTriggerIdentifier(self.getCardId() + "-" + ((ForEachKilledResult) effectResult).getKilledCard().getCardId());
action.appendEffect(
new ChooseAndPlayCardFromHandEffect(playerId, game, -2, Race.SPIDER) {
@Override