[crossfire] Curse bug

Nicolas Weeger (Laposte) nicolas.weeger at laposte.net
Thu Nov 16 17:48:26 CST 2006


Hello.

About the bug 
https://sourceforge.net/tracker/index.php?func=detail&aid=1551398&group_id=13833&atid=113833 
(curse breaks custom monsters), I suggest a hackish fix (which hopefully 
wouldn't break anything):

when creating the curse itself (ie not recasting spell), store (using 
key/values) the current ac/wc/path_[repelled|denied]. Do *not* call 
fix_player, as that breaks custom monster (set FLAG_NO_FIX_PLAYER before 
calling insert_ob_in_ob).

Then when the force expires, just restore original values. This means force 
has to be identified as a "curse", of course.


Nicolas



More information about the crossfire mailing list