Scripts/Forge of Souls: Revisited Bronjahm script, removed ugly hacks and fixed spells properly

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-10-18 13:19:04 +02:00
parent b4c62b9646
commit 09260ee6c1
10 changed files with 409 additions and 319 deletions
+12 -1
View File
@@ -2776,7 +2776,7 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
case 72444:
case 72445:
case 72446:
for (std::list<Unit*>::iterator itr = unitList.begin() ; itr != unitList.end();)
for (std::list<Unit*>::iterator itr = unitList.begin(); itr != unitList.end();)
{
if (!(*itr)->HasAura(72293))
itr = unitList.erase(itr);
@@ -2795,6 +2795,17 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur)
if (unitList.empty())
return;
break;
case 68921: case 69049: // Soulstorm
for (std::list<Unit*>::iterator itr = unitList.begin(); itr != unitList.end();)
{
Position pos;
(*itr)->GetPosition(&pos);
if (m_caster->GetExactDist2d(&pos) <= 10.0f)
itr = unitList.erase(itr);
else
++itr;
}
break;
}
// Death Pact
if (m_spellInfo->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && m_spellInfo->SpellFamilyFlags[0] & 0x00080000)