Browse Source

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
pull/3566/head
KPhoenix 5 years ago committed by Anders Jenbo
parent
commit
c52a107eb8
  1. 2
      Source/player.cpp

2
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);

Loading…
Cancel
Save