mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Prevent jump spamming, disable face-target while mounted, remove auto-attack on right-click target
This commit is contained in:
parent
2fb01abcaa
commit
c156f3d390
3 changed files with 3 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue