mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 14:36:40 -04:00
[Client] Add check for local player when sending active spell removal
This commit is contained in:
parent
4acf9e289b
commit
6766206a76
@ -43,7 +43,10 @@ namespace MWMechanics
|
||||
|
||||
Whenever a player loses an active spell, send an ID_PLAYER_SPELLS_ACTIVE packet to the server with it
|
||||
*/
|
||||
mwmp::Main::get().getLocalPlayer()->sendSpellsActiveRemoval(iter->first);
|
||||
if (this == &MWMechanics::getPlayer().getClass().getCreatureStats(MWMechanics::getPlayer()).getActiveSpells())
|
||||
{
|
||||
mwmp::Main::get().getLocalPlayer()->sendSpellsActiveRemoval(iter->first);
|
||||
}
|
||||
/*
|
||||
End of tes3mp addition
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user