fix(Core/Unit): melee attack through LoS (#3265)

This commit is contained in:
Viste
2020-08-18 15:07:32 +03:00
committed by GitHub
parent 7fba8b910f
commit ffd03582c9

View File

@@ -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);