forked from mirror/openmw-tes3mp
[Client] Don't add/remove all spells from ingame scripts for LocalPlayer
This commit is contained in:
parent
bf2f932e18
commit
b320910c5f
1 changed files with 4 additions and 2 deletions
|
@ -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…
Reference in a new issue