From abb7c64fb1ee753c880f1c0d7eb1ad1742a6c9ed Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Wed, 2 Feb 2011 11:52:44 +0100 Subject: [PATCH] [11098] Add script effect of spell 24717 and 24737 Signed-off-by: NoFantasy --- src/game/SpellEffects.cpp | 18 ++++++++++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 039cc73e5..fa813ec0a 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -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 24717: // Pirate Costume + { + if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER) + return; + + // Pirate Costume (male or female) + m_caster->CastSpell(unitTarget, unitTarget->getGender() == GENDER_MALE ? 24708 : 24709, true); + return; + } case 24718: // Ninja Costume { if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER) @@ -5956,6 +5965,15 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx) m_caster->CastSpell(unitTarget, unitTarget->getGender() == GENDER_MALE ? 24712 : 24713, true); return; } + case 24737: // Ghost Costume + { + if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER) + return; + + // Ghost Costume (male or female) + m_caster->CastSpell(unitTarget, unitTarget->getGender() == GENDER_MALE ? 24735 : 24736, true); + return; + } case 26275: // PX-238 Winter Wondervolt TRAP { uint32 spells[4] = { 26272, 26157, 26273, 26274 }; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 0b82d108d..822bacf30 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11097" + #define REVISION_NR "11098" #endif // __REVISION_NR_H__