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:
parent
b74e3a7e2e
commit
7815c8bdaf
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue