mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
*Reapply rev [3274]. It was backoutted due to some reason but was not reapplied as supposed. This should fix the bug that Shockwave can be dodged.
--HG-- branch : trunk
This commit is contained in:
@@ -2643,7 +2643,9 @@ SpellMissInfo Unit::MeleeSpellHitResult(Unit *pVictim, SpellEntry const *spell)
|
||||
{
|
||||
WeaponAttackType attType = BASE_ATTACK;
|
||||
|
||||
if (spell->DmgClass == SPELL_DAMAGE_CLASS_RANGED && IsRangedWeaponSpell(spell))
|
||||
// Check damage class instead of attack type to correctly handle judgements
|
||||
// - they are meele, but can't be dodged/parried/deflected because of ranged dmg class
|
||||
if (spell->DmgClass == SPELL_DAMAGE_CLASS_RANGED)
|
||||
attType = RANGED_ATTACK;
|
||||
|
||||
int32 attackerWeaponSkill;
|
||||
|
||||
Reference in New Issue
Block a user