diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-01-02 09:13:39 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-01-02 09:13:39 -0300 |
commit | 04552d3ccbc70dfea3274a5ee31c2721767d03e6 (patch) | |
tree | 2a4062f0c899d66c34e5ecc01bccae990f359cd5 /npc/functions/hub.txt | |
parent | f04057d32d6b52f7b4db334d974a165a380d2e27 (diff) | |
download | serverdata-04552d3ccbc70dfea3274a5ee31c2721767d03e6.tar.gz serverdata-04552d3ccbc70dfea3274a5ee31c2721767d03e6.tar.bz2 serverdata-04552d3ccbc70dfea3274a5ee31c2721767d03e6.tar.xz serverdata-04552d3ccbc70dfea3274a5ee31c2721767d03e6.zip |
MP Regen now halts regeneration. Healing skills rules changes depending on this
- First Aid: 80% penalty
- Healing: 67% penalty against self, otherwise no penalty
- Magnus Heal: No penalty
PS. Healing from items or other sources (players, little wonders, etc.) intact
Diffstat (limited to 'npc/functions/hub.txt')
-rw-r--r-- | npc/functions/hub.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 144ae2270..bd96481f2 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -598,11 +598,17 @@ function script HUB_SkillInvoke { .@PW=90+(10*@skillLv); // First aid only works on you, so .@heal=max(AdjustSpellpower(.@PW), AdjustAttackpower(.@PW)); + // Penalty if you have HALT_REGEN on (-80%) + if (getstatus(SC_HALT_REGENERATION)) + .@heal /= 5; heal .@heal, 0; GetManaExp(TMW2_HEALING, 1); break; case TMW2_HEALING: .@PW=130+(20*@skillLv); + // Penalty if you have HALT_REGEN on and trying to self heal + if (getstatus(SC_HALT_REGENERATION) && @skillTarget == getcharid(3)) + .@heal /= 3; harm(@skillTarget, -AdjustSpellpower(.@PW), HARM_MISC); GetManaExp(TMW2_HEALING, 2); break; |