示例#1
0
 public static bool RazeAimCasterTemp(Ability raze, Hero target, bool checkForAngle = true)
 {
     if (!raze.CanBeCasted())
     {
         return(false);
     }
     if (raze.IsInAbilityPhase)
     {
         return(true);
     }
     if (!raze.CanHit(target, raze.GetAbilityDelay()))
     {
         return(false);
     }
     raze.UseAbility();
     RazeCancelSystem.New(raze, target);
     return(true);
 }
示例#2
0
 public static bool RazeAimCaster(Ability raze, Hero target, bool checkForAngle = true)
 {
     if (!raze.CanBeCasted())
     {
         return(false);
     }
     if (raze.IsInAbilityPhase)
     {
         return(true);
     }
     if (!raze.CanHit(target, true, checkForAngle))
     {
         return(false);
     }
     if (RazeCancelSystem.New(raze, target))
     {
         raze.UseAbility();
     }
     return(true);
 }