mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-10-05 01:56:30 +00:00
[Client] Use correct stacking value when sending SpellsActive packets
This commit is contained in:
parent
f2d95dc84d
commit
571f3e8ee7
1 changed files with 2 additions and 4 deletions
|
@ -232,18 +232,16 @@ namespace MWMechanics
|
||||||
*/
|
*/
|
||||||
if (sendPacket)
|
if (sendPacket)
|
||||||
{
|
{
|
||||||
bool isStackingSpell = it == end() || stack;
|
|
||||||
|
|
||||||
if (this == &MWMechanics::getPlayer().getClass().getCreatureStats(MWMechanics::getPlayer()).getActiveSpells())
|
if (this == &MWMechanics::getPlayer().getClass().getCreatureStats(MWMechanics::getPlayer()).getActiveSpells())
|
||||||
{
|
{
|
||||||
mwmp::Main::get().getLocalPlayer()->sendSpellsActiveAddition(id, isStackingSpell, params);
|
mwmp::Main::get().getLocalPlayer()->sendSpellsActiveAddition(id, stack, params);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MWWorld::Ptr actorPtr = MWBase::Environment::get().getWorld()->searchPtrViaActorId(getActorId());
|
MWWorld::Ptr actorPtr = MWBase::Environment::get().getWorld()->searchPtrViaActorId(getActorId());
|
||||||
|
|
||||||
if (mwmp::Main::get().getCellController()->isLocalActor(actorPtr))
|
if (mwmp::Main::get().getCellController()->isLocalActor(actorPtr))
|
||||||
mwmp::Main::get().getCellController()->getLocalActor(actorPtr)->sendSpellsActiveAddition(id, isStackingSpell, params);
|
mwmp::Main::get().getCellController()->getLocalActor(actorPtr)->sendSpellsActiveAddition(id, stack, params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue