Addressing bug with the use of static dieroll in uhitm.c.
This commit is contained in:
committed by
Pasi Kallinen
parent
d51f74a507
commit
78756c9bd6
@@ -610,11 +610,13 @@ drag:
|
||||
You("are jerked back by the iron ball!");
|
||||
if ((victim = m_at(uchain->ox, uchain->oy)) != 0) {
|
||||
int tmp;
|
||||
int dieroll = rnd(20);
|
||||
|
||||
tmp = -2 + Luck + find_mac(victim);
|
||||
tmp += omon_adj(victim, uball, TRUE);
|
||||
if (tmp >= rnd(20))
|
||||
(void) hmon(victim, uball, HMON_DRAGGED);
|
||||
|
||||
if (tmp >= dieroll)
|
||||
(void) hmon(victim, uball, HMON_DRAGGED, dieroll);
|
||||
else
|
||||
miss(xname(uball), victim);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user