[Request] Fix Immunity Level/Ability Drain negating item property decreased ability
![Snafulator](https://forums.beamdog.com/uploads/userpics/281/nPXYPA7VQFGLP.jpg)
This is a bug that i have had trouble with a bunch of times over the years.
If you have an item with 'Immunity: Level/Ability Drain' it counteracts decreased ability item properties added to items.
In my use case i am applying strength/constitution penalties as item properties to the skin/hide object as a form of death penalty. If you are wearing a Bone Ring the decreased ability will be completely ignored.
I have attached a module named 'test_drain' to recreate the bug. The module has a bone ring & tower shield on the floor and then the onItemAcquired event applies a temporary -8 Strength item property to anything you pickup (so both the shield and the Bone Ring). Equip the Bone Ring then the Tower Shield and your strength will not have changed at all. It also does the same thing if the item property is a permanent one.
It seems like the immunity to ability drain does not distinguish between magical effects directed at the player and item properties placed directly on an item.
Thank you for your time. Love your work Beamdog
If you have an item with 'Immunity: Level/Ability Drain' it counteracts decreased ability item properties added to items.
In my use case i am applying strength/constitution penalties as item properties to the skin/hide object as a form of death penalty. If you are wearing a Bone Ring the decreased ability will be completely ignored.
I have attached a module named 'test_drain' to recreate the bug. The module has a bone ring & tower shield on the floor and then the onItemAcquired event applies a temporary -8 Strength item property to anything you pickup (so both the shield and the Bone Ring). Equip the Bone Ring then the Tower Shield and your strength will not have changed at all. It also does the same thing if the item property is a permanent one.
It seems like the immunity to ability drain does not distinguish between magical effects directed at the player and item properties placed directly on an item.
Thank you for your time. Love your work Beamdog
![:) :)](https://forums.beamdog.com/resources/emoji/smile.png)
Post edited by Snafulator on
0
Comments
That said you might rephrase your post as suggesting that you think the immunity properties should be separated. I would imagine rule changes like that are unlikely to go through.
On the other hand you could always script around it if you need an immediate solution.
I beleive this is what hes getting at and needs help with.