From f7c90653bd9a9edb82ba3e61da696c19d82e2cb3 Mon Sep 17 00:00:00 2001 From: qndel Date: Fri, 27 Sep 2019 02:34:21 +0200 Subject: [PATCH] [hellfire] DoHealOther bin exact --- Source/spells.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/spells.cpp b/Source/spells.cpp index aea7f5d16..df21a2ba4 100644 --- a/Source/spells.cpp +++ b/Source/spells.cpp @@ -262,6 +262,15 @@ void DoHealOther(int pnum, int rid) hp += (random(57, 6) + 1) << 6; } +#ifdef HELLFIRE + if (plr[pnum]._pClass == PC_WARRIOR || plr[pnum]._pClass == PC_BARBARIAN) { + hp <<= 1; + } else if (plr[pnum]._pClass == PC_ROGUE || plr[pnum]._pClass == PC_BARD) { + hp += hp >> 1; + } else if (plr[pnum]._pClass == PC_MONK) { + hp *= 3; + } +#else if (plr[pnum]._pClass == PC_WARRIOR) { hp <<= 1; } @@ -269,6 +278,7 @@ void DoHealOther(int pnum, int rid) if (plr[pnum]._pClass == PC_ROGUE) { hp += hp >> 1; } +#endif plr[rid]._pHitPoints += hp;