Core/Spells: fixed an issue in Pyromaniac's spell script that was allowing players to trigger the buff when having three dots instead of dots on three targets active

This commit is contained in:
Ovahlord
2019-05-11 06:47:01 +02:00
parent eec3d280cd
commit d4f2854796

View File

@@ -2107,8 +2107,13 @@ class spell_mage_pyromaniac : public AuraScript
{
std::list<AuraEffect*> _dotAuraEffects = dotTarget->GetAuraEffectsByType(SPELL_AURA_PERIODIC_DAMAGE);
for (AuraEffect const* dotEff : _dotAuraEffects)
{
if (dotEff->GetCasterGUID() == target->GetGUID() && dotEff->GetSpellInfo()->SpellFamilyFlags[2] & 0x00000008)
{
dotTargetCount++;
break;
}
}
}
else
_dotTargetGuids.erase(guid);
@@ -2137,8 +2142,13 @@ class spell_mage_pyromaniac : public AuraScript
uint8 dotTargetCount = 0;
std::list<AuraEffect*> _dotAuraEffects = dotTarget->GetAuraEffectsByType(SPELL_AURA_PERIODIC_DAMAGE);
for (AuraEffect const* dotEff : _dotAuraEffects)
{
if (dotEff->GetCasterGUID() == target->GetGUID() && dotEff->GetSpellInfo()->SpellFamilyFlags[2] & 0x00000008)
{
dotTargetCount++;
break;
}
}
if (!dotTargetCount)
_dotTargetGuids.erase(guid);