Core/Spells: SPELL_AURA_OVERRIDE_AUTOATTACK_WITH_MELEE_SPELL will now pull its spell ids for off-attacks from basepoints instead of misc values since there is only one case that uses it in Baleroc's encounter

This commit is contained in:
Ovahlord committed 2020-03-20 11:31:38 +01:00
1 parent 359eb2bc67
commit 5e5ec5c70f
1 file changed
+2 -2
+2 -2
View File
@@ -2122,13 +2122,13 @@ void Unit::AttackerStateUpdate(Unit* victim, WeaponAttackType attType, bool extr
{
auto itr = std::find_if(meleeAttackOverrides.begin(), meleeAttackOverrides.end(), [&](AuraEffect const* aurEff)
{
return aurEff->GetMiscValue() != 0;
return aurEff->GetAmount() != 0;
});
if (itr != meleeAttackOverrides.end())
{
meleeAttackAuraEffect = *itr;
meleeAttackSpellId = meleeAttackAuraEffect->GetMiscValue();
meleeAttackSpellId = meleeAttackAuraEffect->GetAmount();
}
}