/// <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) { }
public Silverwing(WarsongGulch instance) : base(instance, SpellId.SilverwingFlag, SpellId.AllianceFlagDrop, SpellId.RecentlyDroppedFlag, WarsongGulch.AllianceFlagDebuffSpellId, WarsongGulch.SilverwingFlagStandId, WarsongGulch.SilverwingFlagId) { }
/// <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; } } }
/// <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; } } }
#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; }
#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; }