mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-25 16:52:25 +00:00
Update npc.cpp
This commit is contained in:
parent
e1adffc4be
commit
e19db3b7f4
@ -778,6 +778,7 @@ bool NPC::Process()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (GetMana() < GetMaxMana()) {
|
if (GetMana() < GetMaxMana()) {
|
||||||
|
if (RuleB(NPC, UseMeditateBasedManaRegen)) {
|
||||||
int32 npc_idle_mana_regen_bonus = 2;
|
int32 npc_idle_mana_regen_bonus = 2;
|
||||||
uint16 meditate_skill = GetSkill(EQEmu::skills::SkillMeditate);
|
uint16 meditate_skill = GetSkill(EQEmu::skills::SkillMeditate);
|
||||||
if (!IsEngaged() && meditate_skill > 0) {
|
if (!IsEngaged() && meditate_skill > 0) {
|
||||||
@ -788,6 +789,10 @@ bool NPC::Process()
|
|||||||
}
|
}
|
||||||
SetMana(GetMana() + mana_regen + npc_idle_mana_regen_bonus);
|
SetMana(GetMana() + mana_regen + npc_idle_mana_regen_bonus);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
SetMana(GetMana() + mana_regen + npc_sitting_regen_bonus);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
SendHPUpdate();
|
SendHPUpdate();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user