fix(Core/Unit): melee attack through LoS (#3265)
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user