diff options
| author | megamage <none@none> | 2009-05-12 10:25:47 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-05-12 10:25:47 -0500 |
| commit | 722701381b7bc99483241e73b2aeb6b177e2e457 (patch) | |
| tree | ae5972924ea6f05759be4bfac42d087169889117 /src | |
| parent | df4e8b456becd90ca839b8f64fbe326042aaabd9 (diff) | |
*Do not allow a spell proc itself. This fixes the crash caused by item 32500.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Unit.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
