Fixed a crash from casting the wrong object type, which was a copy-paste error from the original class.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<pre style="font-size:80%">
|
||||
<b>Most recent update</b>
|
||||
|
||||
<b>2021 December 20 - B</b>
|
||||
- Fixed a game crash regarding new functionality added for Crebain Flock (V1_25).
|
||||
|
||||
<b>2021 December 20 - A</b>
|
||||
- Fixed Legolas, Keen-eyed's strength bonus not lasting until the regroup phase.
|
||||
- Fixed Gilraen's Memorial (V1_22) not being available
|
||||
|
||||
@@ -8,6 +8,7 @@ import com.gempukku.lotro.cards.build.field.FieldUtils;
|
||||
import com.gempukku.lotro.common.Filterable;
|
||||
import com.gempukku.lotro.game.PhysicalCard;
|
||||
import com.gempukku.lotro.logic.timing.TriggerConditions;
|
||||
import com.gempukku.lotro.logic.timing.results.ActivateCardResult;
|
||||
import com.gempukku.lotro.logic.timing.results.PlayCardResult;
|
||||
import com.gempukku.lotro.logic.timing.results.PlayEventResult;
|
||||
import org.json.simple.JSONObject;
|
||||
@@ -27,10 +28,10 @@ public class ActivatedTriggerCheckerProducer implements TriggerCheckerProducer {
|
||||
boolean activated = TriggerConditions.activated(actionContext.getGame(), actionContext.getEffectResult(), filterable);
|
||||
|
||||
if (activated) {
|
||||
PlayCardResult playCardResult = (PlayCardResult) actionContext.getEffectResult();
|
||||
ActivateCardResult activateCardResult = (ActivateCardResult) actionContext.getEffectResult();
|
||||
|
||||
if (memorize != null) {
|
||||
PhysicalCard playedCard = playCardResult.getPlayedCard();
|
||||
PhysicalCard playedCard = activateCardResult.getSource();
|
||||
actionContext.setCardMemory(memorize, playedCard);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user