Scripts/Spells: Move spell_anchor_here to generic because is used by more than one boss
Port From (https://github.com/TrinityCore/TrinityCore/commit/0bbdfc6112835396992473c940ae619598f64ec2)
This commit is contained in:
@@ -4215,6 +4215,22 @@ namespace Scripts.Spells.Generic
|
|||||||
OnEffectHit.Add(new EffectHandler(HandleSummon, 0, SpellEffectName.Summon));
|
OnEffectHit.Add(new EffectHandler(HandleSummon, 0, SpellEffectName.Summon));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Script] // 45313 - Anchor Here
|
||||||
|
class spell_gen_anchor_here : SpellScript
|
||||||
|
{
|
||||||
|
void HandleScript(uint effIndex)
|
||||||
|
{
|
||||||
|
Creature creature = GetHitCreature();
|
||||||
|
if (creature != null)
|
||||||
|
creature.SetHomePosition(creature.GetPositionX(), creature.GetPositionY(), creature.GetPositionZ(), creature.GetOrientation());
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Register()
|
||||||
|
{
|
||||||
|
OnEffectHitTarget.Add(new EffectHandler(HandleScript, 0, SpellEffectName.ScriptEffect));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 40307 - Stasis Field
|
// 40307 - Stasis Field
|
||||||
class StasisFieldSearcher : ICheck<Unit>
|
class StasisFieldSearcher : ICheck<Unit>
|
||||||
|
|||||||
Reference in New Issue
Block a user