Prevent jump spamming, disable face-target while mounted, remove auto-attack on right-click target

This commit is contained in:
Kelsi 2026-02-07 18:57:27 -08:00
parent 2fb01abcaa
commit c156f3d390
3 changed files with 3 additions and 5 deletions

View file

@ -712,11 +712,9 @@ void GameScreen::processTargetInput(game::GameHandler& gameHandler) {
if (unit->getHealth() == 0 && unit->getMaxHealth() > 0) {
gameHandler.lootTarget(target->getGuid());
} else {
// Interact with friendly NPCs, otherwise attack
// Interact with friendly NPCs; hostile units just get targeted
if (!unit->isHostile() && unit->isInteractable()) {
gameHandler.interactWithNpc(target->getGuid());
} else {
gameHandler.startAutoAttack(target->getGuid());
}
}
} else if (target->getType() == game::ObjectType::PLAYER) {