mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[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:
parent
e1074c0ac1
commit
a84d67a389
3 changed files with 7 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1220,16 +1220,14 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
return;
|
||||
}
|
||||
// Demon Broiled Surprise
|
||||
/* FIX ME: Required for correct work implementing implicit target 7 (in pair (22,7))
|
||||
case 43723:
|
||||
{
|
||||
if (m_caster->GetTypeId() != TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
((Player*)m_caster)->CastSpell(unitTarget, 43753, true);
|
||||
((Player*)m_caster)->CastSpell(unitTarget, 43753, true, m_CastItem, NULL, m_originalCasterGUID, m_spellInfo);
|
||||
return;
|
||||
}
|
||||
*/
|
||||
case 43882: // Scourging Crystal Controller Dummy
|
||||
{
|
||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10907"
|
||||
#define REVISION_NR "10908"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue