Jump to content

Recommended Posts

  • Replies 66
  • Created
  • Last Reply

Top Posters In This Topic

Posted
This isn't related to the bug that GuruRD discovered. RegenerateAll() isn't called at all when the player the player is dead, so the timer never gets updated when dead. So if someone casts a resurrect spell on you, or you have reincarnate, you can wait 5 minutes before clicking accept and immediately come back to life with +5minutes worth of regenerating health and mana.

So what do you suggest we do to fix this? Is this bug still present?

Posted

This is what I meant should be done:

@@ -4019,6 +4047,7 @@ void Player::ResurrectPlayer(float restore_percent, bool applySickness)
    SetMovement(MOVE_UNROOT);

    m_deathTimer = 0;
+    m_lastRegenerate = getMSTime();

    // set health/powers (0- will be set in caller)
    if(restore_percent>0.0f)

Here is the patch on [8029]

Posted
This is very important for classes using energy! Another bump from me since in a few days I've seen some other fixes not as major as this one accepted. ^_^

Please stop bumping. It will not help the patch to be accepted, even worse. Unless you have something useful to add (tested and found no bug, tested and found bug, fixe, ...).

I will update the first post with the latest update from nos4r2zod. Thanks for fix.

  • 2 weeks later...
Posted

i tested this. seems good. but i think there a small bug where it still does not go smooth. its more like 1,2,3,4,5,6,5,6,7,8,9,8,9 something like that.

Posted
i tested this. seems good. but i think there a small bug where it still does not go smooth. its more like 1,2,3,4,5,6,5,6,7,8,9,8,9 something like that.

mb lags ?

  • 2 weeks later...
Posted
Tested and in some special cases it makes players no realy die, they die and regen 1 life than states on a dead can cast state...

Happens to me too.. anyone has a solution for this? It happens just after i put this patch..

  • 3 weeks later...
Posted

patch works, tried adding a "if (curValue)" to check if player is dead before regenerating health. On the way moved Unit::SetLastManaUse from Unit.h (which isn't a place for functions) to Unit.cpp .

patch is for 8262

link

needs some testing to see if it fixed the dead caster bug

  • 2 weeks later...
  • 2 weeks later...
Posted

I looked at the patch and did few changes:

* Kicked out dependency on GetMSTime() in regen code

* Added some defines instead of magic values

* Cleanup

I would be very happy if some body can test and report possible regressions agains original patch. I tested it little bit with rogue nad priest and looks ok.

Patch on Pastebin: http://www.pastebin.ca/1543415

Patch on filebeam: http://filebeam.com/800169cae9d3a1efe73d5833930a539e (gzipped patch file)

Patch on github: git pull git://github.com/apoc/mangos.git regen_fix

My changes on patch you can see here: http://alturl.com/p68f

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use