Browse Source

Merge pull request #1735 from qndel/DoHealOther2

[hellfire] DoHealOther bin exact
pull/876/head
Robin Eklind 7 years ago committed by GitHub
parent
commit
f4034b5023
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      Source/spells.cpp

10
Source/spells.cpp

@ -266,6 +266,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;
}
@ -273,6 +282,7 @@ void DoHealOther(int pnum, int rid)
if (plr[pnum]._pClass == PC_ROGUE) {
hp += hp >> 1;
}
#endif
plr[rid]._pHitPoints += hp;

Loading…
Cancel
Save