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())
|
if (!victim->IsAlive())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if ((attType == BASE_ATTACK || attType == OFF_ATTACK) && !IsWithinLOSInMap(victim))
|
||||||
|
return;
|
||||||
|
|
||||||
CombatStart(victim);
|
CombatStart(victim);
|
||||||
RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_MELEE_ATTACK);
|
RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_MELEE_ATTACK);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue