Item destruction by spells

A place for people to post strange occurances that could be potential bugs.

Moderator: Board moderators

Post Reply
Ripper

Item destruction by spells

Post by Ripper »

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
User avatar
hoxu
Senior member
Posts: 330
Joined: Tue Apr 29, 2003 6:10 am

Post by hoxu »

I agree that the "non-damaging" spells should not destroy items. I think this was discussed some time ago but I don't remember the outcome.

/* Debian GNU/Linux - rebooting is for adding hardware. */
Leaf
Forum Aficionado
Posts: 2002
Joined: Tue Apr 29, 2003 5:55 pm
Location: Minnesota, USA
Contact:

Post by Leaf »

I wonder how long this "feature" has been around...

It looks like the Partial Resistance (PR) code my have caused this, which was checked in to CVS around Dec-2000
User avatar
hoxu
Senior member
Posts: 330
Joined: Tue Apr 29, 2003 6:10 am

Post by hoxu »

I think I noticed it sometime during 2003.

/* Debian GNU/Linux - rebooting is for adding hardware. */
Post Reply