mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 08:23:51 +00:00
"Always best attack" should only affect the player
This commit is contained in:
parent
d0c6ecd03a
commit
7820ea5806
1 changed files with 2 additions and 1 deletions
|
@ -691,7 +691,8 @@ bool CharacterController::updateWeaponState()
|
||||||
mAttackType = "shoot";
|
mAttackType = "shoot";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(isWeapon && Settings::Manager::getBool("best attack", "Game"))
|
if(isWeapon && mPtr.getRefData().getHandle() == "player" &&
|
||||||
|
Settings::Manager::getBool("best attack", "Game"))
|
||||||
mAttackType = getBestAttack(weapon->get<ESM::Weapon>()->mBase);
|
mAttackType = getBestAttack(weapon->get<ESM::Weapon>()->mBase);
|
||||||
else
|
else
|
||||||
determineAttackType();
|
determineAttackType();
|
||||||
|
|
Loading…
Reference in a new issue