mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-02 15:17:27 +01:00
*Fix a crash caused by using item.
--HG-- branch : trunk
This commit is contained in:
@@ -2090,7 +2090,8 @@ void Spell::prepare(SpellCastTargets * targets, Aura* triggeredByAura)
|
||||
// set timer base at cast time
|
||||
ReSetTimer();
|
||||
|
||||
if(m_IsTriggeredSpell || !m_casttime && !m_spellInfo->StartRecoveryTime && GetCurrentContainer() == CURRENT_GENERIC_SPELL)
|
||||
//item: first cast may destroy item and second cast causes crash
|
||||
if(m_IsTriggeredSpell || !m_casttime && !m_spellInfo->StartRecoveryTime && !m_castItemGUID && GetCurrentContainer() == CURRENT_GENERIC_SPELL)
|
||||
cast(true);
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user