mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[11098] Add script effect of spell 24717 and 24737
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
a23f1a2e08
commit
abb7c64fb1
2 changed files with 19 additions and 1 deletions
|
|
@ -5938,6 +5938,15 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
|
||||||
case 24590: // Brittle Armor - need remove one 24575 Brittle Armor aura
|
case 24590: // Brittle Armor - need remove one 24575 Brittle Armor aura
|
||||||
unitTarget->RemoveAuraHolderFromStack(24575);
|
unitTarget->RemoveAuraHolderFromStack(24575);
|
||||||
return;
|
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
|
case 24718: // Ninja Costume
|
||||||
{
|
{
|
||||||
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
|
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);
|
m_caster->CastSpell(unitTarget, unitTarget->getGender() == GENDER_MALE ? 24712 : 24713, true);
|
||||||
return;
|
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
|
case 26275: // PX-238 Winter Wondervolt TRAP
|
||||||
{
|
{
|
||||||
uint32 spells[4] = { 26272, 26157, 26273, 26274 };
|
uint32 spells[4] = { 26272, 26157, 26273, 26274 };
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11097"
|
#define REVISION_NR "11098"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue