Scripts/BWD: fixed a possible edge case in which Maloriak's Consuming Flames could get increased when taking damage from non damage class magic attacks

This commit is contained in:
Ovahlord
2020-10-30 22:22:14 +01:00
parent 0bb1afbf31
commit 579c6c4be2

View File

@@ -943,7 +943,7 @@ class spell_maloriak_consuming_flames: public AuraScript
{
bool CheckProc(ProcEventInfo& eventInfo)
{
if (eventInfo.GetSpellInfo() && eventInfo.GetSpellInfo()->Id == GetId())
if (!eventInfo.GetSpellInfo() || eventInfo.GetSpellInfo()->DmgClass != SPELL_DAMAGE_CLASS_MAGIC || eventInfo.GetSpellInfo()->Id == GetId())
return false;
return eventInfo.GetDamageInfo();