From 5e5ec5c70fce38f678aded22ff4c02b97d74a340 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Fri, 20 Mar 2020 11:31:38 +0100 Subject: [PATCH] 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 --- src/server/game/Entities/Unit/Unit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 040aa37918..6290678f64 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -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(); } }