Commit 6a055e2 1 parent 25e9eb0 commit 6a055e2 Copy full SHA for 6a055e2
File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3507,4 +3507,5 @@ The following changes to date are:
3507
3507
when rile_shk() routine was called
3508
3508
- Fix: bracers should not be a suitable target when applying
3509
3509
a dwarvish bearded axe towards the player or a monster
3510
+ - Fix: crash in relation to tainted (drow poison) objects
3510
3511
Original file line number Diff line number Diff line change @@ -2164,7 +2164,7 @@ int dieroll;
2164
2164
obj -> oprops_known |= ITEM_VENOM ;
2165
2165
update_inventory ();
2166
2166
}
2167
- } else if (taintsleep ) {
2167
+ } else if (taintsleep && ! destroyed ) {
2168
2168
if (sleep_monst (mon , rn2 (3 ) + 2 , WEAPON_CLASS )) {
2169
2169
pline ("%s loses consciousness." , Monnam (mon ));
2170
2170
slept_monst (mon );
@@ -2182,8 +2182,10 @@ int dieroll;
2182
2182
}
2183
2183
}
2184
2184
2185
- if (DEADMONSTER (mon ) && !ispotion && obj /* potion obj will have been freed by here */
2186
- && (obj == uwep || (u .twoweap && obj == uswapwep )) && issecespita
2185
+ if (destroyed && !ispotion && obj /* potion obj will have been freed by here */
2186
+ && (obj == uwep
2187
+ || (u .twoweap && obj == uswapwep ))
2188
+ && issecespita
2187
2189
&& !nonliving (mdat ) && u .uen < u .uenmax ) {
2188
2190
int energy = mon -> m_lev + 1 ;
2189
2191
You can’t perform that action at this time.
0 commit comments