コード例 #1
0
 private static bool UseHeal()
 {
     if (Spell2 == null || !Spell2.CanBeCasted() || !Utils.SleepCheck(Spell2.StoredName()) || MyHero.Mana - Spell4.ManaCost <= Spell2.ManaCost)
     {
         return(false);
     }
     Spell2.UseAbility(MyHero);
     Utils.Sleep(500 + Game.Ping, Spell2.StoredName());
     return(true);
 }