From 5784d03121ebbe9a20bf55a77e506c0f3d0a1ace Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 17 May 2009 17:33:39 -0500 Subject: *Fix the bug that inferno and curse of doom summons too many minions. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 7 +++++++ src/game/SpellMgr.cpp | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 27196aa9a7a..47ef23ad855 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -6420,6 +6420,13 @@ void Spell::SummonGuardian(uint32 entry, SummonPropertiesEntry const *properties //float radius = GetSpellRadiusForFriend(sSpellRadiusStore.LookupEntry(m_spellInfo->EffectRadiusIndex[i])); float radius = 5.0f; int32 amount = damage > 0 ? damage : 1; + switch(m_spellInfo->Id) + { + case 1122: // Inferno + case 18662: // Curse of Doom + amount = 1; + break; + } int32 duration = GetSpellDuration(m_spellInfo); TempSummonType summonType = (duration == 0) ? TEMPSUMMON_DEAD_DESPAWN : TEMPSUMMON_TIMED_DESPAWN; Map *map = caster->GetMap(); diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index c7bf8cd5bac..8a067ec734d 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -3255,10 +3255,6 @@ void SpellMgr::LoadSpellCustomAttr() spellInfo->MaxAffectedTargets = 1; spellInfo->EffectTriggerSpell[0] = 33760; break; - case 1122: // Inferno - case 18662: // Curse of Doom - spellInfo->EffectBasePoints[0] = 0; //prevent summon too many of them - break; case 17941: // Shadow Trance case 22008: // Netherwind Focus case 31834: // Light's Grace -- cgit v1.2.3