1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 23:23:52 +00:00

[Client] Queue sending of Cast packet from CastSpell::cast()

This commit is contained in:
David Cernat 2019-11-28 09:40:22 +02:00
parent b74e3a7e2e
commit 7815c8bdaf

View file

@ -1057,8 +1057,8 @@ namespace MWMechanics
/*
Start of tes3mp change (major)
Make spell casting fail based on the attack success rated determined
in LocalPlayer and LocalActor's updateAttackOrCast()
Make spell casting fail based on the casting success rated determined
in MechanicsHelper::getSpellSuccess()
*/
mwmp::Cast *localCast = NULL;
mwmp::Cast *dedicatedCast = MechanicsHelper::getDedicatedCast(mCaster);
@ -1069,6 +1069,8 @@ namespace MWMechanics
{
localCast = MechanicsHelper::getLocalCast(mCaster);
localCast->success = MechanicsHelper::getSpellSuccess(mId, mCaster);
localCast->pressed = false;
localCast->shouldSend = true;
}
// Check success