/// <summary> /// Bainshee Transform While Casting. /// </summary> /// <param name="player"></param> public override void Init(GamePlayer player) { base.Init(player); // Add Cast Listener. m_WraithTimerAction = new RegionTimerAction<GamePlayer>(Player, pl => { if (pl.CharacterClass is ClassBainshee) ((ClassBainshee)pl.CharacterClass).TurnOutOfWraith(); }); m_WraithTriggerEvent = new DOLEventHandler(TriggerUnWraithForm); GameEventMgr.AddHandler(Player, GamePlayerEvent.CastFinished, new DOLEventHandler(TriggerWraithForm)); }
/// <summary> /// Bainshee Transform While Casting. /// </summary> /// <param name="player"></param> public override void Init(GamePlayer player) { base.Init(player); // Add Cast Listener. m_WraithTimerAction = new RegionTimerAction <GamePlayer>(Player, pl => { if (pl.CharacterClass is ClassBainshee) { ((ClassBainshee)pl.CharacterClass).TurnOutOfWraith(); } }); m_WraithTriggerEvent = new DOLEventHandler(TriggerUnWraithForm); GameEventMgr.AddHandler(Player, GamePlayerEvent.CastFinished, new DOLEventHandler(TriggerWraithForm)); }