"Always best attack" should only affect the player

actorid
scrawl 11 years ago
parent d0c6ecd03a
commit 7820ea5806

@ -691,7 +691,8 @@ bool CharacterController::updateWeaponState()
mAttackType = "shoot";
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);
else
determineAttackType();

Loading…
Cancel
Save