Saving against an Effect removes existing one.

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
grayswandir
Uruivellas
Posts: 708
Joined: Wed Apr 30, 2008 5:55 pm

Saving against an Effect removes existing one.

#1 Post by grayswandir »

If you currently have a status effect, and then you save against that same status effect being applied (through saves, not resists), you lose the original status effect.

I tested this by going up to a troll, setting it to be stunned for 10000 turns. Then I changed it's physical save to 100 and hit it with Stunning Blow. It was no longer stunned.

Not really sure if this is a bug or intended behavior. I really don't like it, though.



The fix seems really simple: In engine/interface/ActorTemporaryEffects, on line 110, change:

Code: Select all

if p.dur <= 0 then return self:removeEffect(eff_id) end
to

Code: Select all

if p.dur <= 0 then return end
I tested this briefly, and it worked just fine.
Addons: Arcane Blade Tweaks, Fallen Race, Monk Class, Weapons Pack
Currently working on Elementals. It's a big project, so any help would be appreciated. :)

Doctornull
Sher'Tul Godslayer
Posts: 2402
Joined: Tue Jun 18, 2013 10:46 pm
Location: Ambush!

Re: Saving against an Effect removes existing one.

#2 Post by Doctornull »

I like this change.

Currently I code my new stuff to check for pre-existing effects (and potentially skip applying a new effect) specifically to work around this.
Check out my addons: Nullpack (classes), Null Tweaks (items & talents), and New Gems fork.

Marson
Uruivellas
Posts: 645
Joined: Thu Jan 16, 2014 4:56 am

Re: Saving against an Effect removes existing one.

#3 Post by Marson »

Nice and simple, but impactful.

Post Reply