[11096] Add script effect of spell 24719

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
Morphau 2011-02-02 11:29:37 +01:00 committed by NoFantasy
parent c05f910484
commit 65ad0231e7
2 changed files with 10 additions and 1 deletions

View file

@ -5938,6 +5938,15 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
case 24590: // Brittle Armor - need remove one 24575 Brittle Armor aura
unitTarget->RemoveAuraHolderFromStack(24575);
return;
case 24719: // Leper Gnome Costume
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
// Leper Gnome Costume (male or female)
m_caster->CastSpell(unitTarget, unitTarget->getGender() == GENDER_MALE ? 24712 : 24713, true);
return;
}
case 26275: // PX-238 Winter Wondervolt TRAP
{
uint32 spells[4] = { 26272, 26157, 26273, 26274 };