コード例 #1
0
ファイル: Extensionss.cs プロジェクト: Taazuma/EB-T
 public static bool TryToCast(this Spell.Active spell, Obj_AI_Base target, Menu m)
 {
     if (target == null)
     {
         return(false);
     }
     return(target.CanCast(spell, m) && spell.Cast());
 }
コード例 #2
0
ファイル: Extensions.cs プロジェクト: tekintr/Elobuddy
 public static bool TryToCast(this Spell.Skillshot spell, Obj_AI_Base target, Menu m, int percent = 75)
 {
     if (target == null)
     {
         return(false);
     }
     return(target.CanCast(spell, m, percent) && spell.Cast(target));
 }
コード例 #3
0
 /// <summary>
 /// It will only cast the spell if it can
 /// </summary>
 /// <param name="spell">Active Spell</param>
 /// <param name="target">Target to cast the spell</param>
 public static bool TryCast(this Spell.Ranged spell, Obj_AI_Base target)
 {
     if (spell != null)
     {
         if (target.CanCast(spell))
         {
             return(spell.Cast(target));
         }
     }
     return(false);
 }
コード例 #4
0
 /// <summary>
 /// It will only cast the spell if it can
 /// </summary>
 /// <param name="spell">Active Spell</param>
 /// <param name="target">Target to cast the spell</param>
 public static bool TryCast(this Spell.SpellBase spell, Obj_AI_Base target)
 {
     if (spell != null)
     {
         var spellSlot = spell.Slot.ToString()[spell.Slot.ToString().Length - 1];
         if (target.CanCast(spell) &&
             !OKTR_Core.OKTRSpellTargetSelectorMenu.GetCheckBoxValue(OKTR_Core.OKTRSpellTargetSelectorMenuID + spellSlot + target.BaseSkinName))
         {
             return(spell.Cast(target));
         }
     }
     return(false);
 }
コード例 #5
0
ファイル: Extensions.cs プロジェクト: Taazuma/EB-T
        public static bool CanCast(this Obj_AI_Base target, Spell.Targeted spell, Menu m)
        {
            var asBase = spell as Spell.SpellBase;

            return(target.CanCast(asBase, m));
        }
コード例 #6
0
ファイル: Spells.cs プロジェクト: nextdream123/ItsMeMario
        public static bool CanCast(this Obj_AI_Base target, Spell.Ranged spell)
        {
            var asBase = spell as Spell.SpellBase;

            return(target.CanCast(asBase));
        }
コード例 #7
0
ファイル: Extensions.cs プロジェクト: Casanje/ItsMeMario
 public static bool TryToCast(this Spell.Ranged spell, Obj_AI_Base target, Menu m)
 {
     if (target == null) return false;
     return target.CanCast(spell, m) && spell.Cast(target);
 }
コード例 #8
0
ファイル: Extensions.cs プロジェクト: Casanje/ItsMeMario
 public static bool TryToCast(this Spell.Skillshot spell, Obj_AI_Base target, Menu m, int percent = 75)
 {
     if (target == null) return false;
     return target.CanCast(spell, m, percent) && spell.Cast(target);
 }