mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-26 14:36:40 -04:00
[Client] Don't add/remove all spells from ingame scripts for LocalPlayer
This commit is contained in:
parent
bf2f932e18
commit
b320910c5f
@ -449,7 +449,8 @@ namespace MWScript
|
||||
// Added by tes3mp
|
||||
//
|
||||
// LocalPlayer has gained a spell, so send a packet with it
|
||||
mwmp::Main::get().getLocalPlayer()->sendSpellAddition(id);
|
||||
if (ptr == MWMechanics::getPlayer())
|
||||
mwmp::Main::get().getLocalPlayer()->sendSpellAddition(id);
|
||||
}
|
||||
};
|
||||
|
||||
@ -478,7 +479,8 @@ namespace MWScript
|
||||
// Added by tes3mp
|
||||
//
|
||||
// LocalPlayer has lost a spell, so send a packet with it
|
||||
mwmp::Main::get().getLocalPlayer()->sendSpellRemoval(id);
|
||||
if (ptr == MWMechanics::getPlayer())
|
||||
mwmp::Main::get().getLocalPlayer()->sendSpellRemoval(id);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user