aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-17 17:33:39 -0500
committermegamage <none@none>2009-05-17 17:33:39 -0500
commit5784d03121ebbe9a20bf55a77e506c0f3d0a1ace (patch)
tree006e70624d5b3811a6e234214f6f0df0580926f6
parent5f023f64f319fc8375a5f3fe29f2297187992b0b (diff)
*Fix the bug that inferno and curse of doom summons too many minions.
--HG-- branch : trunk
-rw-r--r--src/game/SpellEffects.cpp7
-rw-r--r--src/game/SpellMgr.cpp4
2 files changed, 7 insertions, 4 deletions
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