diff options
| author | Shauren <none@none> | 2010-10-09 16:50:03 +0200 |
|---|---|---|
| committer | Shauren <none@none> | 2010-10-09 16:50:03 +0200 |
| commit | 9a47bc96a1ebb3d10d6a8ead0f26f958c4f8b838 (patch) | |
| tree | b9a4e1c4faa0def87936e1acfd8eb01e7496908a /src/server/game/Spells/Spell.cpp | |
| parent | aae2f3b48e259d95e97621d012632b336f9023b8 (diff) | |
Scripts/Icecrown Citadel: Added Rotface script
Scripts/Icecrown Citadel: Corrected death speech for Stinky and Festergut
Scripts/Icecrown Citadel: Fixed Boned! achievement conditions
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Spells/Spell.cpp')
| -rwxr-xr-x | src/server/game/Spells/Spell.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 6e4ead80a2e..0aed57b9c4e 100755 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -2778,6 +2778,17 @@ void Spell::SelectEffectTargets(uint32 i, uint32 cur) ++itr; } break; + case 69782: case 69796: // Ooze Flood + case 69798: case 69801: // Ooze Flood + // get 2 targets except 2 nearest + unitList.sort(Trinity::ObjectDistanceOrderPred(m_caster)); + unitList.resize(4); + while (unitList.size() > 2) + unitList.pop_front(); + // crashfix + if (unitList.empty()) + return; + break; } // Death Pact if (m_spellInfo->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && m_spellInfo->SpellFamilyFlags[0] & 0x00080000) |
