mattekure
January 10th, 2022, 16:05
In 5E, When issuing a long rest the EXHAUSTION effect auto deprecates for NPCs, but does not for PCs.
This code exists in the CombatManager2.resetHealth() for NPC resting, but similar code is not in the CharManager.resetHealth()
local nExhaustMod = EffectManager5E.getEffectsBonus(ActorManager.resol veActor(nodeCT), {"EXHAUSTION"}, true);
if nExhaustMod > 0 then
nExhaustMod = nExhaustMod - 1;
EffectManager5E.removeEffectByType(nodeCT, "EXHAUSTION");
if nExhaustMod > 0 then
EffectManager.addEffect("", "", nodeCT, { sName = "EXHAUSTION: " .. nExhaustMod, nDuration = 0 }, false);
end
end
This code exists in the CombatManager2.resetHealth() for NPC resting, but similar code is not in the CharManager.resetHealth()
local nExhaustMod = EffectManager5E.getEffectsBonus(ActorManager.resol veActor(nodeCT), {"EXHAUSTION"}, true);
if nExhaustMod > 0 then
nExhaustMod = nExhaustMod - 1;
EffectManager5E.removeEffectByType(nodeCT, "EXHAUSTION");
if nExhaustMod > 0 then
EffectManager.addEffect("", "", nodeCT, { sName = "EXHAUSTION: " .. nExhaustMod, nDuration = 0 }, false);
end
end