[11057] Add script effect of spell 48917

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-01-21 12:18:50 +01:00
parent 4643d9020e
commit 1824dd767f
3 changed files with 22 additions and 1 deletions

View file

@ -6266,6 +6266,17 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
unitTarget->CastSpell(unitTarget, spellId, true);
return;
}
case 48917: // Who Are They: Cast from Questgiver
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
// Male Shadowy Disguise / Female Shadowy Disguise
unitTarget->CastSpell(unitTarget, unitTarget->getGender() == GENDER_MALE ? 38080 : 38081, true);
// Shadowy Disguise
unitTarget->CastSpell(unitTarget, 32756, true);
return;
}
case 50217: // The Cleansing: Script Effect Player Cast Mirror Image
{
// Summon Your Inner Turmoil

View file

@ -1846,6 +1846,16 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons
(spellInfo_2->Id == 23170 && spellInfo_1->Id == 23171))
return false;
// Male Shadowy Disguise
if ((spellInfo_1->Id == 32756 && spellInfo_2->Id == 38080) ||
(spellInfo_2->Id == 32756 && spellInfo_1->Id == 38080))
return false;
// Female Shadowy Disguise
if ((spellInfo_1->Id == 32756 && spellInfo_2->Id == 38081) ||
(spellInfo_2->Id == 32756 && spellInfo_1->Id == 38081))
return false;
// Cool Down (See PeriodicAuraTick())
if ((spellInfo_1->Id == 52441 && spellInfo_2->Id == 52443) ||
(spellInfo_2->Id == 52441 && spellInfo_1->Id == 52443))

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11056"
#define REVISION_NR "11057"
#endif // __REVISION_NR_H__