DoT + Stoneskin Fix

Post Reply
PrBlahBlahtson
Developer
Posts: 539
Joined: Sun Jul 22, 2012 12:17 am

DoT + Stoneskin Fix

Post by PrBlahBlahtson » Sun Aug 19, 2012 11:52 pm

Stroke of inspiration, since I'd seen code that I could neatly repurpose in magic.lua. Knocked the fix out and tested with Venom Potions in all of 10 minutes.

The attached patch will make Bio, Dia, Poison, and the six elemental debuffs eat into Stoneskin if it's present. You're able to rest in this condition, but will be forced to stand on the first tick that deals damage.

Possible issues:
If the DoT tick = remaining potency on Stoneskin (i.e 5 = 5), then Stoneskin is lost, but no HP is consumed and the player will not stand. Logically, this seems correct, but I'm not 100% certain it's retail. Easily fixed, if it's incorrect.

Edit:
v1 has a teensy problem that occurred to me (returns value instead of dealing damage). Correcting and re-uploading.
Attachments
DoTs.patch
v2
(9.2 KiB) Downloaded 194 times

xworndownx
Posts: 12
Joined: Fri Jul 27, 2012 1:25 pm

Re: DoT + Stoneskin Fix

Post by xworndownx » Wed Aug 22, 2012 3:29 pm


Post Reply