Removing a duplicate item combat spell handling causing poisons (and others) to proc twice. (#24627)

https://github.com/TrinityCore/TrinityCore/issues/24608
This commit is contained in:
joshwhedon
2020-05-16 05:54:33 +10:00
committed by GitHub
parent c0b75bf40d
commit 4db77bc913

View File

@@ -2468,10 +2468,6 @@ void Spell::TargetInfo::DoDamageAndTriggers(Spell* spell)
{
spellDamageInfo = std::make_unique<DamageInfo>(damageInfo, SPELL_DIRECT_DAMAGE, spell->m_attackType, hitMask);
procSpellType |= PROC_SPELL_TYPE_DAMAGE;
if (caster->GetTypeId() == TYPEID_PLAYER && !spell->m_spellInfo->HasAttribute(SPELL_ATTR0_STOP_ATTACK_TARGET) && !spell->m_spellInfo->HasAttribute(SPELL_ATTR4_CANT_TRIGGER_ITEM_SPELLS) &&
(spell->m_spellInfo->DmgClass == SPELL_DAMAGE_CLASS_MELEE || spell->m_spellInfo->DmgClass == SPELL_DAMAGE_CLASS_RANGED))
caster->ToPlayer()->CastItemCombatSpell(*spellDamageInfo);
}
}