Fix crash #3297 in Unit::HandleDummyAuraProc
This commit is contained in:
@@ -5038,6 +5038,7 @@ bool Unit::HandleSpellCritChanceAuraProc(Unit* victim, uint32 /*damage*/, AuraEf
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//victim may be NULL
|
||||||
bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggeredByAura, SpellInfo const* procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown)
|
bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggeredByAura, SpellInfo const* procSpell, uint32 procFlag, uint32 procEx, uint32 cooldown)
|
||||||
{
|
{
|
||||||
SpellInfo const* dummySpell = triggeredByAura->GetSpellInfo();
|
SpellInfo const* dummySpell = triggeredByAura->GetSpellInfo();
|
||||||
@@ -6229,6 +6230,9 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
|
|||||||
// Glyph of Shred
|
// Glyph of Shred
|
||||||
case 54815:
|
case 54815:
|
||||||
{
|
{
|
||||||
|
if(!target)
|
||||||
|
return false;
|
||||||
|
|
||||||
// try to find spell Rip on the target
|
// try to find spell Rip on the target
|
||||||
if (AuraEffect const* AurEff = target->GetAuraEffect(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_DRUID, 0x00800000, 0x0, 0x0, GetGUID()))
|
if (AuraEffect const* AurEff = target->GetAuraEffect(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_DRUID, 0x00800000, 0x0, 0x0, GetGUID()))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user