[11289] Partially revert [11287] and try to do it properly this time.

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2011-03-26 08:04:36 +01:00
parent 989d229968
commit 40d87bfabf
3 changed files with 4 additions and 11 deletions

View file

@ -2708,16 +2708,6 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
target->PlayDirectSound(14972, (Player *)target); target->PlayDirectSound(14972, (Player *)target);
} }
return; 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 40131:
case 27978: case 27978:
if (apply) if (apply)

View file

@ -2148,6 +2148,9 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
// Sleeping Sleep // Sleeping Sleep
unitTarget->CastSpell(unitTarget, 62248, true); unitTarget->CastSpell(unitTarget, 62248, true);
unitTarget->setFaction(190); // Ambient (neutral)
unitTarget->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_OOC_NOT_ATTACKABLE);
return; return;
} }
case 64385: // Spinning (from Unusual Compass) case 64385: // Spinning (from Unusual Compass)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11288" #define REVISION_NR "11289"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__