*Some improvement of DK start zone quests (no new quest fixed)

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-27 23:33:21 -05:00
parent e81d3acda7
commit d2fe68bfef
5 changed files with 94 additions and 58 deletions
+17 -1
View File
@@ -61,7 +61,7 @@ template<class T>
inline
const T& RAND(const T& v1, const T& v2, const T& v3, const T& v4, const T& v5)
{
switch(rand()%4)
switch(rand()%5)
{
default:
case 0: return v1;
@@ -72,6 +72,22 @@ const T& RAND(const T& v1, const T& v2, const T& v3, const T& v4, const T& v5)
}
}
template<class T>
inline
const T& RAND(const T& v1, const T& v2, const T& v3, const T& v4, const T& v5, const T& v6)
{
switch(rand()%6)
{
default:
case 0: return v1;
case 1: return v2;
case 2: return v3;
case 3: return v4;
case 4: return v5;
case 5: return v6;
}
}
class EventMap : private std::map<uint32, uint32>
{
private:
+6 -1
View File
@@ -4877,7 +4877,12 @@ void Spell::EffectScriptEffect(uint32 effIndex)
m_caster->CastSpell(x, y, z, 54522, true);
}
break;
}
}
// Sky Darkener Assault
case 52124:
if(unitTarget)
m_caster->CastSpell(unitTarget, 52125, false);
return;
// Death Gate
case 52751:
{
+1
View File
@@ -3360,6 +3360,7 @@ void SpellMgr::LoadSpellCustomAttr()
case 45976: // Muru Portal Channel
case 39365: // Thundering Storm
case 41071: // Raise Dead (HACK)
case 52124: // Sky Darkener Assault
spellInfo->MaxAffectedTargets = 1;
break;
case 41376: // Spite