1
0
Fork 1
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:
scrawl 2014-01-30 03:14:22 +01:00
parent d0c6ecd03a
commit 7820ea5806

View file

@ -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();