[b21] Regen + Curse of Death bug

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Dervis
Wyrmic
Posts: 263
Joined: Thu Oct 14, 2010 9:58 am

[b21] Regen + Curse of Death bug

#1 Post by Dervis »

Curse of Death is supposed to suppress life regeneration effects as one of it's effects.
In normal play, if someone has life_regen 10 for example, the curse will negate that regeneration.

The bug goes like this:
1 - You have a regeneration running - self:addTemporaryValue("life_regen", x)
Gamewise, you have a beneficial timed effect for life_regen=+x.
2 - You get hit by a curse of death - self:addTemporaryValue("life_regen", -self.life_regen)
Gamewise, you get a detrimental timed effect for life_regen=-life_regen (it got the buffed value from regeneration)
For example, if your Regeneration ticks for 100, the Curse of Death will tick for -100 for a net 0 (zero).
3 - The regen ends - the Curse of Death doesn't update the value.
So, at that point, you'll have Regeneration 0 and Curse of Death -100. This isn't even damage so it can't be prevented, you'll just die a cheesy death unless you have a curse removal or another healing effect to use.

I think this can easily reproduced on a reaver cursing himself.

Grey
Loremaster
Posts: 3517
Joined: Thu Sep 23, 2010 10:18 pm
Location: London, England
Contact:

Re: [b21] Regen + Curse of Death bug

#2 Post by Grey »

Well, at least it lives up to its name :P But yeah, should be changed. In fact it leads to a potential abuse - shove a curse of death on an enemy as they near the end of their regen.

Hmm, and I wonder if one can manipulate negative regen stuff to get curse of death to be a healing spell...?
http://www.gamesofgrey.com - My own T-Engine games!
Roguelike Radio - A podcast about roguelikes

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: [b21] Regen + Curse of Death bug

#3 Post by darkgod »

fixed
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply