mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 13:22:48 +01:00
*Fix the bug that inferno and curse of doom summons too many minions.
--HG-- branch : trunk
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user