*Fix the bug that inferno and curse of doom summons too many minions.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-17 17:33:39 -05:00
parent 5f023f64f3
commit 5784d03121
2 changed files with 7 additions and 4 deletions

View File

@@ -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();

View File

@@ -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