From 301fff7fe56efc132ad60f800fe93449e2dff333 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Mon, 17 Jun 2019 04:21:43 +0300 Subject: [PATCH] [Client] Always allow spellcasting from dedicated players and actors --- apps/openmw/mwworld/worldimp.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index c4ad67d53..f8032d540 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -3122,6 +3122,18 @@ namespace MWWorld End of tes3mp addition */ + /* + Start of tes3mp addition + + Always start spells cast by DedicatedPlayers and DedicatedActors, + without unilaterally deducting any magicka for them on this client + */ + if (mwmp::PlayerList::isDedicatedPlayer(actor) || mwmp::Main::get().getCellController()->isDedicatedActor(actor)) + return true; + /* + End of tes3mp addition + */ + const ESM::Spell* spell = getStore().get().find(selectedSpell); // Check mana