From 722701381b7bc99483241e73b2aeb6b177e2e457 Mon Sep 17 00:00:00 2001 From: megamage Date: Tue, 12 May 2009 10:25:47 -0500 Subject: *Do not allow a spell proc itself. This fixes the crash caused by item 32500. --HG-- branch : trunk --- src/game/Unit.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 28d2fbd619b..3939877647d 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -6778,6 +6778,9 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig // Set trigger spell id, target, custom basepoints uint32 trigger_spell_id = auraSpellInfo->EffectTriggerSpell[triggeredByAura->GetEffIndex()]; + if(procSpell && procSpell->Id == trigger_spell_id) + return false; + Unit* target = NULL; int32 basepoints0 = 0; -- cgit v1.2.3