|Anonymous | Login | Signup for a new account||2019-04-23 22:41 CEST|
|Main | My View | View Issues | Change Log | Wiki | Tavern | News|
|Viewing Issue Simple Details|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0007868||[DCSS] Bug Report||minor||always||2013-12-16 13:23||2013-12-18 07:27|
|Status||resolved||Product Branch||0.14 ancient branch|
|Summary||0007868: commanding enslaved monsters to retreat allows player to attack them without breaking charm|
Seems like a possible bug/exploit
1) enslave any creature
2) command creature to Retreat (preferably player can stand in hall way and block hall way and make the creature retreat to a point blocked by the character)
3) The enslaved minion will just stand in front of you while you attack it, attacking it does not break enslavement. (if not ordered to retreat, it will break charm if you damage it)
Basically enslavement+retreat is a very safe method of killing extremely strong enemies since enslavement has a much longer duration than other disable spells.
|Tags||No tags attached.|
|Attached Files||0001-Allow-retreating-allies-to-go-hostile-when-attacked.patch [^] (884 bytes) 2013-12-16 20:11 [Show Content]|
One-line fix attached.
I don't think src is ever null when behaviour_event() is called for ME_WHACK or ME_ANNOY, but it might be a good idea to throw "src && " ahead of the conditional I added.
Blacksheep's fix is now in trunk (0.14-a0-1548-g09a3b55) and stable (0.13.1-19-g4b9377e). Thanks!
It isn't necessary to add a test for null, because the comparison is testing the pointers, not the values, and &you will never be null.
|2013-12-16 13:23||LordLovebone||New Issue|
|2013-12-16 20:11||BlackSheep||File Added: 0001-Allow-retreating-allies-to-go-hostile-when-attacked.patch|
|2013-12-16 20:16||BlackSheep||Note Added: 0024747|
|2013-12-18 07:27||neil||Note Added: 0024767|
|2013-12-18 07:27||neil||Status||new => resolved|
|2013-12-18 07:27||neil||Fixed in Branch||=> 0.13 stable branch|
|2013-12-18 07:27||neil||Resolution||open => done|
|2013-12-18 07:27||neil||Assigned To||=> neil|
|Mantis 1.1.8[^] Copyright © 2000 - 2009 Mantis Group|