From 04183c7fbec95b8627e193a423765072e4597c66 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 26 Feb 2025 10:38:29 -0600 Subject: [PATCH] Fix summoning exported monsters --- src/game/boe.combat.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/boe.combat.cpp b/src/game/boe.combat.cpp index d6676f71..9a799392 100644 --- a/src/game/boe.combat.cpp +++ b/src/game/boe.combat.cpp @@ -4769,7 +4769,10 @@ bool combat_cast_mage_spell() { store_sum_monst = pick_trapped_monst(); if(store_sum_monst == 0) return false; - get_monst = univ.scenario.scen_monsters[store_sum_monst]; + if(store_sum_monst >= 10000) + get_monst = univ.party.summons[store_sum_monst-10000]; + else + get_monst = univ.scenario.scen_monsters[store_sum_monst]; if(store_sp < get_monst.level) { add_string_to_buf("Cast: Not enough spell points."); return false;