Browse Source

codefix in resurrect

pull/2283/head
qndel 5 years ago committed by Anders Jenbo
parent
commit
ade4d1fb64
  1. 2
      Source/spells.cpp

2
Source/spells.cpp

@ -245,7 +245,7 @@ void DoResurrect(int pnum, int rid)
#endif
SetPlayerHitPoints(rid, hp);
plr[rid]._pHPBase = plr[rid]._pHitPoints + (plr[rid]._pMaxHPBase - plr[rid]._pMaxHP);
plr[rid]._pHPBase = plr[rid]._pHitPoints + (plr[rid]._pMaxHPBase - plr[rid]._pMaxHP); // CODEFIX: does the same stuff as SetPlayerHitPoints above, can be removed
plr[rid]._pMana = 0;
plr[rid]._pManaBase = plr[rid]._pMana + (plr[rid]._pMaxManaBase - plr[rid]._pMaxMana);

Loading…
Cancel
Save