EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Bugs (https://www.eqemulator.org/forums/forumdisplay.php?f=622)
-   -   Bugfix: Lifetaps (https://www.eqemulator.org/forums/showthread.php?t=1336)

Kaiyodo 04-21-2002 01:22 AM

Bugfix: Lifetaps
 
I noticed the lifetap code was doing odd things, setting me to a seemingly random amount of health everytime I cast one. Here's the reason ..

in NPC::Damage()

if (spells[spell_id].targettype == ST_Tap) {
other->SetHP(GetHP() + damage);
...

Change that line to ..

other->SetHP(other->GetHP() + damage);

.. and they all work lovely. You'll need to change that in Client::Damage() too.

K.


All times are GMT -4. The time now is 11:59 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.