mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-25 22:10:41 -04:00
[Client] Don't apply spell effects unilaterally on DedicatedActors
This commit is contained in:
parent
bf0a42fdad
commit
7690f3c90e
@ -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…
x
Reference in New Issue
Block a user