Skip to content

Commit

Permalink
Fix autoshot cannot attack a neutral target.
Browse files Browse the repository at this point in the history
(based on cmangos/mangos-wotlk@e6a4a6323)

Signed-off-by: Xfurry <xfurry.cmangos@outlook.com>
  • Loading branch information
cyberium authored and xfurry committed Jan 4, 2018
1 parent 07faa2d commit 669278d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Entities/Unit.cpp
Expand Up @@ -4631,7 +4631,7 @@ void Unit::_UpdateAutoRepeatSpell()
}

// some check about new target are necessary
if (!currTarget || !currTarget->isTargetableForAttack() || currTarget->IsFriendlyTo(this))
if (!currTarget || !currTarget->isTargetableForAttack() || IsFriendlyTo(currTarget))
{
// no valid target
InterruptSpell(CURRENT_AUTOREPEAT_SPELL);
Expand Down

0 comments on commit 669278d

Please sign in to comment.