[11287] Add dummy effect of spell 62105 and dummy aura effect of 62248

Note: spell 62105 are still considered to be negative, despite explicit exception added in IsPositiveEffect and will unexpectedly put caster in combat.

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-03-26 00:15:29 +01:00
parent 7645b98a49
commit dae28ae93a
4 changed files with 21 additions and 1 deletions

View file

@ -2708,6 +2708,16 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
target->PlayDirectSound(14972, (Player *)target);
}
return;
case 62248: // Sleeping Sleep
{
if (apply)
target->setFaction(190); // Ambient (neutral)
else
target->setFaction(1990); // Ambient (hostile)
target->ApplyModFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE, apply);
return;
}
case 40131:
case 27978:
if (apply)

View file

@ -2141,6 +2141,15 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
m_caster->CastSpell(unitTarget,60934,true,NULL);
return;
}
case 62105: // To'kini's Blowgun
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
return;
// Sleeping Sleep
unitTarget->CastSpell(unitTarget, 62248, true);
return;
}
case 64385: // Spinning (from Unusual Compass)
{
m_caster->SetFacingTo(frand(0, M_PI_F*2), true);

View file

@ -639,6 +639,7 @@ bool IsPositiveEffect(uint32 spellId, SpellEffectIndex effIndex)
return false;
case 49634: // Sergeant's Flare
case 54530: // Opening
case 62105: // To'kini's Blowgun
return true;
default:
break;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11286"
#define REVISION_NR "11287"
#endif // __REVISION_NR_H__