コード例 #1
0
ファイル: ClassBainshee.cs プロジェクト: mynew4/DOLSharp
		/// <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));
		}
コード例 #2
0
 /// <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));
 }