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:
1 parent
359eb2bc67
commit
5e5ec5c70f
1 file changed
+2
-2
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user