[Bug] PLAYER_REGEN_ENABLED

by Trevion | 04/04/2007 07:52:31

Trevion

The following pseudocode demonstrates what I believe is a bug with the PLAYER_REGEN_ENABLED event:

<Scripts>
<OnLoad>
this:RegisterEvent("PL
AYER_ENTERING_WORLD")
this:RegisterEvent("PLAYER_REGEN_ENAB
LED")
</OnLoad>
<OnEvent>
if ShapeshiftBarFrame:IsShown() then
ShapeshiftBarFrame:Hide()
end
</OnEvent>
</Scripts
>
When you are in combat and leave an instance PLAYER_REGEN_ENABLED does not fire.

Examples of situations tested: Enter an instance such as Stockade and enter combat with a mob, then exit the instance .. or simply /afk out of a BG while in combat.

You will notice for a moment that InCombatLockdown() is true then it will switch to false but PLAYER_REGEN_ENABLED never fires.

This could simply be a semantic problem, but if so is there an event for when the lockdown is about to begin and after it ends?

I have seen the following documented:

  • PLAYER_REGEN_DISABLED is sent before protected frames are locked down
  • PLAYER_REGEN_ENABLED is sent after protected frames are unlocked

    and

  • PLAYER_REGEN_DISABLED : Fired whenever you get aggro, as normal regen rates are disabled during combat.
  • PLAYER_REGEN_ENABLED : Fired after ending combat, as regen rates return to normal. Useful for determining when a player has lost aggro.

    Thanks in advance!

    [ Post edited by Trevion ]


    "The Paladin is a mix of a melee fighter and a secondary spell caster."
    http://www.worldofwarcraft.com/info/classes/paladin/
  • by Slouken | 05/04/2007 06:15:29

    Slouken

    This is fixed for WoW 2.1, thanks!

    Edit: Specifically, you will get PLAYER_REGEN_ENABLED before PLAYER_LEAVING_WORLD

    Bump! Recently Bumped Threads

     

    Blizzard Announcement Recent Blizzard Announcements

     

    We suggest