As everyone knows, some spells (like fireball, icestorm, lightning, ...)
destroy items lying on the ground. Recently however (I haven't noticed
this in previous versions), even spells like fear, paralyze, slow, etc. do.
I checked the source and noticed that all (?) spells seem to get
the attacktype 'magic' added to them. Although the item destruction code
includes a check against attacktypes like fear and paralyze and doesn't
(or shouln't) destroy items hit by them, these spells still have the 'magic'
attacktype and thus destroy the items.
Possible solutions:
1. Don't add the attacktype 'magic' to every spell, or
2. Include this attacktype in the item destruction check, but only if spells
like manabolt/ball shouldn't destroy items.
Regards, Ripper
Item destruction by spells
Moderator: Board moderators