From c52a107eb86cfb35e28ed4a7f21e127c37f2aaad Mon Sep 17 00:00:00 2001 From: KPhoenix <68359262+kphoenix137@users.noreply.github.com> Date: Sun, 10 Oct 2021 21:43:32 -0400 Subject: [PATCH] Prevent Spell Targeting Players with Friendly Mode enabled Prevents players from targeting each other with spells in the same way that players are prevented from targeting each other with weapons when Friendly Mode is enabled --- Source/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/player.cpp b/Source/player.cpp index 47fadfe5a..d3d267ece 100644 --- a/Source/player.cpp +++ b/Source/player.cpp @@ -3500,7 +3500,7 @@ void CheckPlrSpell(bool isShiftHeld) LastMouseButtonAction = MouseActionType::SpellMonsterTarget; sl = GetSpellLevel(MyPlayerId, myPlayer._pRSpell); NetSendCmdParam4(true, CMD_SPELLID, pcursmonst, myPlayer._pRSpell, myPlayer._pRSplType, sl); - } else if (pcursplr != -1 && !isShiftHeld) { + } else if (pcursplr != -1 && !isShiftHeld && !gbFriendlyMode) { LastMouseButtonAction = MouseActionType::SpellPlayerTarget; sl = GetSpellLevel(MyPlayerId, myPlayer._pRSpell); NetSendCmdParam4(true, CMD_SPELLPID, pcursplr, myPlayer._pRSpell, myPlayer._pRSplType, sl);