コード例 #1
0
ファイル: WarsongClan.cs プロジェクト: KroneckerX/WCell
    	/// <summary>
    	/// Creates a new team containing everything related to the Horde (warsong) side.
    	/// </summary>
    	public WarsongClan(WarsongGulch instance) :
    		base(instance,
				SpellId.WarsongFlag,
				SpellId.HordeFlagDrop,
				SpellId.RecentlyDroppedFlag_2,
				WarsongGulch.HordeFlagDebuffSpellId,
				WarsongGulch.WarsongClanFlagStandId,
                WarsongGulch.WarsongFlagId)
        {
        }
コード例 #2
0
 public Silverwing(WarsongGulch instance) :
     base(instance,
          SpellId.SilverwingFlag,
          SpellId.AllianceFlagDrop,
          SpellId.RecentlyDroppedFlag,
          WarsongGulch.AllianceFlagDebuffSpellId,
          WarsongGulch.SilverwingFlagStandId,
          WarsongGulch.SilverwingFlagId)
 {
 }
コード例 #3
0
ファイル: Silverwing.cs プロジェクト: remixod/netServer
		public Silverwing(WarsongGulch instance) :
			base(instance,
				SpellId.SilverwingFlag,
				SpellId.AllianceFlagDrop,
				SpellId.RecentlyDroppedFlag,
				WarsongGulch.AllianceFlagDebuffSpellId,
				WarsongGulch.SilverwingFlagStandId,
                WarsongGulch.SilverwingFlagId)
		{
		}
コード例 #4
0
ファイル: WarsongClan.cs プロジェクト: NecroSharper/WCell
 /// <summary>
 /// Creates a new team containing everything related to the Horde (warsong) side.
 /// </summary>
 public WarsongClan(WarsongGulch instance) :
     base(instance,
          SpellId.WarsongFlag,
          SpellId.HordeFlagDrop,
          SpellId.RecentlyDroppedFlag_2,
          WarsongGulch.HordeFlagDebuffSpellId,
          WarsongGulch.WarsongClanFlagStandId,
          WarsongGulch.WarsongFlagId)
 {
 }
コード例 #5
0
ファイル: WarsongFlagsHandler.cs プロジェクト: pallmall/WCell
        /// <summary>
        /// Ensure that the constraints are correct for the Flag aura to be applied
        /// </summary>
        protected override void CheckInitialize(CasterInfo casterInfo, Unit target, ref SpellFailedReason failReason)
        {
			if (!(target is Character))
			{
				failReason = SpellFailedReason.BadTargets;
			}
			else
			{
				Instance = target.Region as WarsongGulch;
				if (Instance == null)
				{
					failReason = SpellFailedReason.IncorrectArea;
				}
			}
        }
コード例 #6
0
 /// <summary>
 /// Ensure that the constraints are correct for the Flag aura to be applied
 /// </summary>
 protected override void CheckInitialize(SpellCast creatingCast, ObjectReference casterReference, Unit target, ref SpellFailedReason failReason)
 {
     if (!(target is Character))
     {
         failReason = SpellFailedReason.BadTargets;
     }
     else
     {
         Instance = target.Map as WarsongGulch;
         if (Instance == null)
         {
             failReason = SpellFailedReason.IncorrectArea;
         }
     }
 }
コード例 #7
0
        /// <summary>
        /// Ensure that the constraints are correct for the Flag aura to be applied
        /// </summary>
        protected override void CheckInitialize(SpellCast creatingCast, ObjectReference casterReference, Unit target, ref SpellFailedReason failReason)
        {
			if (!(target is Character))
			{
				failReason = SpellFailedReason.BadTargets;
			}
			else
			{
				Instance = target.Map as WarsongGulch;
				if (Instance == null)
				{
					failReason = SpellFailedReason.IncorrectArea;
				}
			}
        }
コード例 #8
0
ファイル: WSGFaction.cs プロジェクト: pallmall/WCell
#pragma warning restore 0649

		#endregion

		protected WSGFaction(WarsongGulch instance,
			SpellId flagSpell,
			SpellId flagDropSpell,
			SpellId flagDropDebuff,
			SpellId flagCarrierDebuffSpellId,
			GOEntryId flagStand,
			GOEntryId flagDropId)
		{
			Instance = instance;
			_flagSpell = SpellHandler.Get(flagSpell);
			_flagDropSpell = SpellHandler.Get(flagDropSpell);
			_flagDropDebuff = SpellHandler.Get(flagDropDebuff);
			_flagCarrierDebuffSpell = SpellHandler.Get(flagCarrierDebuffSpellId);
			FlagStandEntry = GOMgr.GetEntry(flagStand);
			DroppedFlagEntry = GOMgr.GetEntry(flagDropId);

			_flagRespawn = WarsongGulch.FlagRespawnTime;
			Score = 0;
		}
コード例 #9
0
ファイル: WSGFaction.cs プロジェクト: NecroSharper/WCell
#pragma warning restore 0649

        #endregion

        protected WSGFaction(WarsongGulch instance,
                             SpellId flagSpell,
                             SpellId flagDropSpell,
                             SpellId flagDropDebuff,
                             SpellId flagCarrierDebuffSpellId,
                             GOEntryId flagStand,
                             GOEntryId flagDropId)
        {
            Instance                = instance;
            _flagSpell              = SpellHandler.Get(flagSpell);
            _flagDropSpell          = SpellHandler.Get(flagDropSpell);
            _flagDropDebuff         = SpellHandler.Get(flagDropDebuff);
            _flagCarrierDebuffSpell = SpellHandler.Get(flagCarrierDebuffSpellId);
            FlagStandEntry          = GOMgr.GetEntry(flagStand);
            DroppedFlagEntry        = GOMgr.GetEntry(flagDropId);

            _flagRespawnTime = WarsongGulch.FlagRespawnTimeMillis;
            Score            = 0;
        }