Viewing Issue Simple Details
[ Jump to Notes ]
[ Wiki ]
|
[ View Advanced ]
[ Issue History ]
[ Print ]
|
ID |
Category |
Severity |
Reproducibility |
Date Submitted |
Last Update |
0004799 |
[DCSS] Bug Report |
minor |
sometimes |
2011-10-23 13:34 |
2011-11-04 15:26 |
|
Reporter |
jeanjacques |
View Status |
public |
|
Assigned To |
Kate |
Priority |
normal |
Resolution |
done |
|
Status |
resolved |
|
Product Branch |
0.10 ancient branch |
|
Summary |
0004799: stabs have the chance to not wake up the target |
Description |
A successful stab does not automatically wake up the target.
Experienced against a goblin with no stabbing skill.
Xiberia did report in IRC that it happened with stabbing skill too. |
Additional Information |
|
Tags |
patch |
|
Attached Files |
wake-on-hit.diff [^] (532 bytes) 2011-10-31 17:05 [Show Content] [Hide Content]diff --git a/crawl-ref/source/mon-behv.cc b/crawl-ref/source/mon-behv.cc
index 48ebfa5..0ce46a7 100644
--- a/crawl-ref/source/mon-behv.cc
+++ b/crawl-ref/source/mon-behv.cc
@@ -963,6 +963,8 @@ void behaviour_event(monster* mon, mon_event_type event, int src,
}
else if (!mons_is_cornered(mon) && (mon->hit_points > fleeThreshold))
mon->behaviour = BEH_SEEK;
+ else if (mon->asleep())
+ mon->behaviour = BEH_SEEK;
if (src == MHITYOU)
{
|
|