mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2026-01-05 22:33:07 +00:00
[Client] Always allow spellcasting from dedicated players and actors
This commit is contained in:
parent
01804af100
commit
301fff7fe5
1 changed files with 12 additions and 0 deletions
|
|
@ -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<ESM::Spell>().find(selectedSpell);
|
||||
|
||||
// Check mana
|
||||
|
|
|
|||
Loading…
Reference in a new issue