Browse Source

Change cursor after acknowledging attempt to cast spell

This matches the behaviour of other targeted spells, however the mana is wasted because it is spent when readying the spell.
pull/4259/head
ephphatha 4 years ago committed by Anders Jenbo
parent
commit
25c2123849
  1. 2
      Source/diablo.cpp
  2. 8
      Source/spells.cpp

2
Source/diablo.cpp

@ -1797,11 +1797,13 @@ bool TryIconCurs()
{
if (pcurs == CURSOR_RESURRECT) {
NetSendCmdParam1(true, CMD_RESURRECT, pcursplr);
NewCursor(CURSOR_HAND);
return true;
}
if (pcurs == CURSOR_HEALOTHER) {
NetSendCmdParam1(true, CMD_HEALOTHER, pcursplr);
NewCursor(CURSOR_HAND);
return true;
}

8
Source/spells.cpp

@ -247,10 +247,6 @@ void CastSpell(int id, spell_id spl, int sx, int sy, int dx, int dy, int spllvl)
void DoResurrect(int pnum, uint16_t rid)
{
if (pnum == MyPlayerId) {
NewCursor(CURSOR_HAND);
}
if ((DWORD)pnum >= MAX_PLRS || rid >= MAX_PLRS) {
return;
}
@ -295,10 +291,6 @@ void DoResurrect(int pnum, uint16_t rid)
void DoHealOther(int pnum, uint16_t rid)
{
if (pnum == MyPlayerId) {
NewCursor(CURSOR_HAND);
}
if ((DWORD)pnum >= MAX_PLRS || rid >= MAX_PLRS) {
return;
}

Loading…
Cancel
Save