fix(Core/Unit): melee attack through LoS (#3265)
This commit is contained in:
parent
7fba8b910f
commit
ffd03582c9
1 changed files with 3 additions and 0 deletions
|
|
@ -2144,6 +2144,9 @@ void Unit::AttackerStateUpdate (Unit* victim, WeaponAttackType attType, bool ext
|
|||
if (!victim->IsAlive())
|
||||
return;
|
||||
|
||||
if ((attType == BASE_ATTACK || attType == OFF_ATTACK) && !IsWithinLOSInMap(victim))
|
||||
return;
|
||||
|
||||
CombatStart(victim);
|
||||
RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_MELEE_ATTACK);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue