[Client] Fix backwards logic when setting type for AI attacks

pull/484/head
David Cernat 6 years ago
parent d9dd7073cf
commit bfd7c83c4d

@ -578,7 +578,7 @@ namespace MWMechanics
if (localAttack && localAttack->pressed != true)
{
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->shouldSend = true;
}

Loading…
Cancel
Save