|
|
|
|
@ -2713,7 +2713,7 @@ bool TryIconCurs()
|
|
|
|
|
if (IsWallSpell(spellID)) { |
|
|
|
|
Direction sd = GetDirection(myPlayer.position.tile, cursPosition); |
|
|
|
|
NetSendCmdLocParam4(true, CMD_SPELLXYD, cursPosition, static_cast<int8_t>(spellID), static_cast<uint8_t>(spellType), static_cast<uint16_t>(sd), spellFrom); |
|
|
|
|
} else if (pcursmonst != -1) { |
|
|
|
|
} else if (pcursmonst != -1 && leveltype != DTYPE_TOWN) { |
|
|
|
|
NetSendCmdParam4(true, CMD_SPELLID, pcursmonst, static_cast<int8_t>(spellID), static_cast<uint8_t>(spellType), spellFrom); |
|
|
|
|
} else if (PlayerUnderCursor != nullptr && !myPlayer.friendlyMode) { |
|
|
|
|
NetSendCmdParam4(true, CMD_SPELLPID, PlayerUnderCursor->getId(), static_cast<int8_t>(spellID), static_cast<uint8_t>(spellType), spellFrom); |
|
|
|
|
|