condtests[bl_bareh] requires a couple of additional g.context.botl = 1
This commit is contained in:
@@ -593,6 +593,8 @@ Gloves_off(VOID_ARGS)
|
||||
engage if a corpse has been set up as the alternate weapon.] */
|
||||
if (u.twoweap && uswapwep && uswapwep->otyp == CORPSE)
|
||||
wielding_corpse(uswapwep, on_purpose);
|
||||
if (condtests[bl_bareh].enabled)
|
||||
g.context.botl = 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -139,6 +139,7 @@ struct obj *wep;
|
||||
{
|
||||
/* Separated function so swapping works easily */
|
||||
int res = 0;
|
||||
boolean had_wep = (uwep != 0);
|
||||
|
||||
if (!wep) {
|
||||
/* No weapon */
|
||||
@@ -221,6 +222,8 @@ struct obj *wep;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((had_wep != (uwep != 0)) && condtests[bl_bareh].enabled)
|
||||
g.context.botl = 1;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user