mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2026-01-06 12:40:56 +00:00
[Client] Don't apply spell effects unilaterally on DedicatedActors
This commit is contained in:
parent
bf0a42fdad
commit
7690f3c90e
1 changed files with 6 additions and 6 deletions
|
|
@ -244,10 +244,10 @@ namespace MWMechanics
|
|||
/*
|
||||
Start of tes3mp change (major)
|
||||
|
||||
If the target is a DedicatedPlayer, don't apply effects to them unilaterally on this client
|
||||
and wait for the server's response to the other client to apply the effects for us
|
||||
If the target is a DedicatedPlayer or DedicatedActor, don't apply effects to them unilaterally on this
|
||||
client and wait for the server's response to the other client to apply the effects for us
|
||||
*/
|
||||
if (effect.mDuration == 0 && !mwmp::PlayerList::isDedicatedPlayer(target))
|
||||
if (effect.mDuration == 0 && !mwmp::PlayerList::isDedicatedPlayer(target) && !mwmp::Main::get().getCellController()->isDedicatedActor(target))
|
||||
/*
|
||||
End of tes3mp change (major)
|
||||
*/
|
||||
|
|
@ -290,10 +290,10 @@ namespace MWMechanics
|
|||
/*
|
||||
Start of tes3mp change (major)
|
||||
|
||||
If the target is a DedicatedPlayer, don't apply effects to them unilaterally on this client
|
||||
and wait for the server's response to the other client to apply the effects for us
|
||||
If the target is a DedicatedPlayer or DedicatedActor, don't apply effects to them unilaterally on this
|
||||
client and wait for the server's response to the other client to apply the effects for us
|
||||
*/
|
||||
else if (!mwmp::PlayerList::isDedicatedPlayer(target))
|
||||
else if (!mwmp::PlayerList::isDedicatedPlayer(target) && !mwmp::Main::get().getCellController()->isDedicatedActor(target))
|
||||
/*
|
||||
End of tes3mp change (major)
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue