|
|
|
|
@ -3433,7 +3433,7 @@ void CalcPlrStaff(Player &player)
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void CheckPlrSpell() |
|
|
|
|
void CheckPlrSpell(bool isShiftHeld) |
|
|
|
|
{ |
|
|
|
|
bool addflag = false; |
|
|
|
|
int sl; |
|
|
|
|
@ -3513,11 +3513,11 @@ void CheckPlrSpell()
|
|
|
|
|
Direction sd = GetDirection(myPlayer.position.tile, cursPosition); |
|
|
|
|
sl = GetSpellLevel(MyPlayerId, myPlayer._pRSpell); |
|
|
|
|
NetSendCmdLocParam4(true, CMD_SPELLXYD, cursPosition, myPlayer._pRSpell, myPlayer._pRSplType, static_cast<uint16_t>(sd), sl); |
|
|
|
|
} else if (pcursmonst != -1) { |
|
|
|
|
} else if (pcursmonst != -1 && !isShiftHeld) { |
|
|
|
|
LastMouseButtonAction = MouseActionType::SpellMonsterTarget; |
|
|
|
|
sl = GetSpellLevel(MyPlayerId, myPlayer._pRSpell); |
|
|
|
|
NetSendCmdParam4(true, CMD_SPELLID, pcursmonst, myPlayer._pRSpell, myPlayer._pRSplType, sl); |
|
|
|
|
} else if (pcursplr != -1) { |
|
|
|
|
} else if (pcursplr != -1 && !isShiftHeld) { |
|
|
|
|
LastMouseButtonAction = MouseActionType::SpellPlayerTarget; |
|
|
|
|
sl = GetSpellLevel(MyPlayerId, myPlayer._pRSpell); |
|
|
|
|
NetSendCmdParam4(true, CMD_SPELLPID, pcursplr, myPlayer._pRSpell, myPlayer._pRSplType, sl); |
|
|
|
|
|