From d4ff1368370b67f70e7e60ce100835ba259e43cc Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 23 Feb 2017 01:05:45 +0200 Subject: [PATCH] [Client] Add comments about spellcasting as a result of merge conflict --- apps/openmw/mwmechanics/spellcasting.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/openmw/mwmechanics/spellcasting.cpp b/apps/openmw/mwmechanics/spellcasting.cpp index 690945615..fde0869ef 100644 --- a/apps/openmw/mwmechanics/spellcasting.cpp +++ b/apps/openmw/mwmechanics/spellcasting.cpp @@ -819,6 +819,13 @@ namespace MWMechanics // Check success + // Major change done by tes3mp: + // Instead of checking whether the caster is a player or an NPC, + // check whether it's the LocalPlayer or a DedicatedPlayer and calculate + // calculate the success chance in clients' LocalPlayer::prepareAttack() + // TODO: Make this make sense for NPCs too + // TODO: See if LocalPlayer being the target and having godmode on + // can be accounted for like it is in OpenMW's corresponding code mwmp::DedicatedPlayer *dedicatedPlayer = mwmp::Players::getPlayer(mCaster); bool isDedicated = dedicatedPlayer != NULL;