mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-07 04:52:24 +00:00
Update npc.cpp
This commit is contained in:
parent
6b27e88315
commit
e1adffc4be
10
zone/npc.cpp
10
zone/npc.cpp
@ -778,7 +778,15 @@ bool NPC::Process()
|
||||
}
|
||||
|
||||
if (GetMana() < GetMaxMana()) {
|
||||
SetMana(GetMana() + mana_regen + npc_sitting_regen_bonus);
|
||||
int32 npc_idle_mana_regen_bonus = 2;
|
||||
uint16 meditate_skill = GetSkill(EQEmu::skills::SkillMeditate);
|
||||
if (!IsEngaged() && meditate_skill > 0) {
|
||||
uint8 clevel = GetLevel();
|
||||
npc_idle_mana_regen_bonus =
|
||||
(((meditate_skill / 10) +
|
||||
(clevel - (clevel / 4))) / 4) + 4;
|
||||
}
|
||||
SetMana(GetMana() + mana_regen + npc_idle_mana_regen_bonus);
|
||||
}
|
||||
|
||||
SendHPUpdate();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user