mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
[Client] Fix backwards logic when setting type for AI attacks
This commit is contained in:
parent
d9dd7073cf
commit
bfd7c83c4d
@ -578,7 +578,7 @@ namespace MWMechanics
|
|||||||
if (localAttack && localAttack->pressed != true)
|
if (localAttack && localAttack->pressed != true)
|
||||||
{
|
{
|
||||||
MechanicsHelper::resetAttack(localAttack);
|
MechanicsHelper::resetAttack(localAttack);
|
||||||
localAttack->type = distantCombat ? mwmp::Attack::MELEE : mwmp::Attack::RANGED;
|
localAttack->type = distantCombat ? mwmp::Attack::RANGED : mwmp::Attack::MELEE;
|
||||||
localAttack->pressed = true;
|
localAttack->pressed = true;
|
||||||
localAttack->shouldSend = true;
|
localAttack->shouldSend = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user