1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-01 11:39:40 +00:00

[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,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);
}
};