mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[8477] Implemented "on demand" regeneration of power in Spell::CheckPower (limited to 500ms frequency).
Correctly set UNIT_FLAG2_REGENERATE_POWER to notify client to stop/start regen in bar. thx. also for nos4r2zod From original patch was removed usage of getMSTime() and rewrited this part. Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
7a2df3c309
commit
dffa5d43bd
6 changed files with 63 additions and 32 deletions
|
|
@ -444,7 +444,7 @@ void Creature::Update(uint32 diff)
|
|||
|
||||
RegenerateMana();
|
||||
|
||||
m_regenTimer = 2000;
|
||||
m_regenTimer = REGEN_TIME_FULL;
|
||||
break;
|
||||
}
|
||||
case DEAD_FALLING:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue