[11092] Add script effect of spell 24194 and 24195

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
virusav 2011-02-01 14:06:14 +01:00 committed by NoFantasy
parent b106ec92f6
commit beeec1c0cd
2 changed files with 39 additions and 1 deletions

View file

@ -5897,6 +5897,44 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
m_caster->CastSpell(unitTarget, 22682, true);
return;
}
case 24194: // Uther's Tribute
case 24195: // Grom's Tribute
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)
return;
uint8 race = m_caster->getRace();
uint32 spellId = 0;
switch(m_spellInfo->Id)
{
case 24194:
switch(race)
{
case RACE_HUMAN: spellId = 24105; break;
case RACE_DWARF: spellId = 24107; break;
case RACE_NIGHTELF: spellId = 24108; break;
case RACE_GNOME: spellId = 24106; break;
case RACE_DRAENEI: spellId = 69533; break;
}
break;
case 24195:
switch(race)
{
case RACE_ORC: spellId = 24104; break;
case RACE_UNDEAD: spellId = 24103; break;
case RACE_TAUREN: spellId = 24102; break;
case RACE_TROLL: spellId = 24101; break;
case RACE_BLOODELF: spellId = 69530; break;
}
break;
}
if (spellId)
m_caster->CastSpell(m_caster, spellId, true);
return;
}
case 24590: // Brittle Armor - need remove one 24575 Brittle Armor aura
unitTarget->RemoveAuraHolderFromStack(24575);
return;