[Client] Don't add/remove all spells from ingame scripts for LocalPlayer

This commit is contained in:
David Cernat 2017-02-21 01:22:21 +02:00
parent bf2f932e18
commit b320910c5f

View file

@ -449,6 +449,7 @@ namespace MWScript
// Added by tes3mp // Added by tes3mp
// //
// LocalPlayer has gained a spell, so send a packet with it // LocalPlayer has gained a spell, so send a packet with it
if (ptr == MWMechanics::getPlayer())
mwmp::Main::get().getLocalPlayer()->sendSpellAddition(id); mwmp::Main::get().getLocalPlayer()->sendSpellAddition(id);
} }
}; };
@ -478,6 +479,7 @@ namespace MWScript
// Added by tes3mp // Added by tes3mp
// //
// LocalPlayer has lost a spell, so send a packet with it // LocalPlayer has lost a spell, so send a packet with it
if (ptr == MWMechanics::getPlayer())
mwmp::Main::get().getLocalPlayer()->sendSpellRemoval(id); mwmp::Main::get().getLocalPlayer()->sendSpellRemoval(id);
} }
}; };