Esempio n. 1
0
 /// <summary>
 ///     (Non-Blocking) Casts the ability's spell on the specified target. The cast will only be attempted if the conditions
 ///     list is completely satisfied first.
 /// </summary>
 /// <returns>Returns true on a successful cast.</returns>
 public virtual async Task <bool> CastOnTarget(WoWUnit target)
 {
     return(await CastManager.CastOnTarget(target, this, Conditions));
 }
Esempio n. 2
0
 /// <summary>
 ///     (Non-Blocking) Casts the ability's spell on the specified target. The cast will only be attempted if the conditions
 ///     list is completely satisfied first.
 /// </summary>
 /// <returns>Returns true on a successful cast.</returns>
 public override async Task <bool> CastOnTarget(WoWUnit target)
 {
     return
         (await CastManager.CastOnTarget(target, this, PandemicConditions) ||
          await base.CastOnTarget(target));
 }