[10908] Imporve detection need use reagents by triggered spell.

Now regagent used if main spell (if infor about provided to triggered cast)
not have regent data.

This fix reagetn use for spell 43723. But maybe need another fixes for proper animation.
This commit is contained in:
VladimirMangos 2010-12-23 00:54:15 +03:00
parent e1074c0ac1
commit a84d67a389
3 changed files with 7 additions and 4 deletions

View file

@ -5811,6 +5811,11 @@ bool Spell::IgnoreItemRequirements() const
if (targetItem->GetOwnerGuid() != m_caster->GetObjectGuid())
return false;
/// Some triggered spells have same reagents that have master spell
/// expected in test: master spell have reagents in first slot then triggered don't must use own
if (m_triggeredBySpellInfo && !m_triggeredBySpellInfo->Reagent[0])
return false;
return true;
}