Core/Spells: check the correct effect index for Beacon of Light auras in heal predicitions

This commit is contained in:
Ovahlord authored and GitHub committed 2023-10-24 22:12:55 +02:00
1 parent 388c504047
commit 94f7ee4dda
1 file changed
+1 -1
+1 -1
View File
@@ -4865,7 +4865,7 @@ void Spell::UpdateSpellHealPrediction(WorldPackets::Spells::SpellHealPrediction&
{
auto beacon = std::find_if(unitCaster->GetSingleCastAuras().begin(), unitCaster->GetSingleCastAuras().end(), [](Aura const* aura)
{
return aura->GetSpellInfo()->Effects[EFFECT_1].IsEffect() && aura->GetSpellInfo()->Effects[EFFECT_1].TriggerSpell == beaconSpellId;
return aura->GetSpellInfo()->Effects[EFFECT_0].IsEffect() && aura->GetSpellInfo()->Effects[EFFECT_0].TriggerSpell == beaconSpellId;
});
if (beacon != unitCaster->GetSingleCastAuras().end())