On Sun, 2002-03-24 at 22:48, Way Cool wrote: > It seems that saves_spell in magic.c is bugged so that if a player > eats a pill such as the greyish herb carried by mob 8909 on stock rom codes > it will cause a crash. The reason why is that that herb has the spell poison > and any pill with a negative spell on it causes a crash I am not sure of how > to possible fix this can need help... This isn't a stock bug by any means: There's a coupe of possible problems with this. I DOUBT its all negative spells affecting this , probably just poison. Unless of course you've modified the code for saves_spell (in which case, I suggest you restore from a previous backup and try again). One possibility is the TAR_xxx that's on poison. Check that, make sure that casting poison by itself doesn't crash the mud that way. Secondly, go through your core file with gdb. Thirdly, create another pill with another negative spell (harm, lightning bolt, etc) to test your theory. Chances are, again, that it's NOT a complete negative spell drain, and if it is, it's certainly not a stock bug. Speaking of stock bugs and pills however, this is one I found a while back, and yeah I made sure it wasn't just with my code.
When eating a pill, only the first 3 spells are cast, when there's room for 4 ? So, if you create a pill with 4 spells, you'll only get the first three. Fix: in act_obj.c (do_eat), under case ITEM_PILL, just add one more obj_cast_spell statement, with obj->value[4], copying the above 3. I'm not sure if this was an intentional bug or wha? TJW

