Esempio n. 1
0
        /// <summary>
        /// Defines a set of Auras of which one Unit can only have 1 per caster
        /// </summary>
        public static AuraCasterGroup AddAuraCasterGroup(params SpellLineId[] ids)
        {
            var group = new AuraCasterGroup {
                ids
            };

            foreach (var spell in group)
            {
                spell.AuraCasterGroup = group;
            }
            return(group);
        }
Esempio n. 2
0
        /// <summary>
        /// Defines a set of Auras of which one Unit can only have the given amount per caster
        /// </summary>
        public static AuraCasterGroup AddAuraCasterGroup(int maxPerCaster, params SpellLineId[] ids)
        {
            AuraCasterGroup auraCasterGroup1 = new AuraCasterGroup(maxPerCaster);

            auraCasterGroup1.Add(ids);
            AuraCasterGroup auraCasterGroup2 = auraCasterGroup1;

            foreach (Spell spell in auraCasterGroup2)
            {
                spell.AuraCasterGroup = auraCasterGroup2;
            }
            return(auraCasterGroup2);
        }
Esempio n. 3
0
        /// <summary>
        /// Defines a set of Auras of which one Unit can only have 1 per caster
        /// </summary>
        public static AuraCasterGroup AddAuraCasterGroup(params SpellLineId[] ids)
        {
            AuraCasterGroup auraCasterGroup1 = new AuraCasterGroup();

            auraCasterGroup1.Add(ids);
            AuraCasterGroup auraCasterGroup2 = auraCasterGroup1;

            foreach (Spell spell in (List <Spell>)auraCasterGroup2)
            {
                spell.AuraCasterGroup = auraCasterGroup2;
            }
            return(auraCasterGroup2);
        }
Esempio n. 4
0
		/// <summary>
		/// Defines a set of Auras of which one Unit can only have the given amount per caster
		/// </summary>
		public static AuraCasterGroup AddAuraCasterGroup(int maxPerCaster, params SpellLineId[] ids)
		{
			var group = new AuraCasterGroup(maxPerCaster) { ids };
			foreach (var spell in group)
			{
				spell.AuraCasterGroup = group;
			}
			return group;
		}