Fix summoning exported monsters
This commit is contained in:
@@ -4769,7 +4769,10 @@ bool combat_cast_mage_spell() {
|
|||||||
store_sum_monst = pick_trapped_monst();
|
store_sum_monst = pick_trapped_monst();
|
||||||
if(store_sum_monst == 0)
|
if(store_sum_monst == 0)
|
||||||
return false;
|
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) {
|
if(store_sp < get_monst.level) {
|
||||||
add_string_to_buf("Cast: Not enough spell points.");
|
add_string_to_buf("Cast: Not enough spell points.");
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user