polearms and infravision
Allow hero to apply a polearm against a monster seen only by infravision. Reported to the mailing list.
This commit is contained in:
@@ -58,6 +58,7 @@ attaching long named candle to long named candelabrum caused buffer overflow
|
|||||||
when polymorhed, only hand/weapon attack on disenchanter should result in
|
when polymorhed, only hand/weapon attack on disenchanter should result in
|
||||||
damage to weapon, gloves, etc.
|
damage to weapon, gloves, etc.
|
||||||
killer should say "the" when choking on unique monster's corpse
|
killer should say "the" when choking on unique monster's corpse
|
||||||
|
allow applying polearm on monster you can see via infravision
|
||||||
|
|
||||||
|
|
||||||
Platform- and/or Interface-Specific Fixes
|
Platform- and/or Interface-Specific Fixes
|
||||||
|
|||||||
+3
-1
@@ -2362,7 +2362,9 @@ use_pole (obj)
|
|||||||
} else if (distu(cc.x, cc.y) < min_range) {
|
} else if (distu(cc.x, cc.y) < min_range) {
|
||||||
pline("Too close!");
|
pline("Too close!");
|
||||||
return (res);
|
return (res);
|
||||||
} else if (!cansee(cc.x, cc.y)) {
|
} else if (!cansee(cc.x, cc.y) &&
|
||||||
|
((mtmp = m_at(cc.x, cc.y)) == (struct monst *)0 ||
|
||||||
|
!canseemon(mtmp))) {
|
||||||
You(cant_see_spot);
|
You(cant_see_spot);
|
||||||
return (res);
|
return (res);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user