Example #1
0
        private async Task <bool> Inspire(string targetName, uint targetUid)
        {
            if (InvokeSpell == null)
            {
                return(false);
            }

            return(await SpellCommands.CastTargetableSpell(Self, _inspireSpell, targetUid, targetName, true));
        }
 private async Task <bool> Heal(uint targetUid, string targetName)
 {
     return(await SpellCommands.CastTargetableSpell(_self, _healSpell, targetUid, targetName));
 }
Example #3
0
 /// <summary>
 /// Zaps a target for ranged magic damage.
 /// </summary>
 /// <param name="target">The NPC to target for the attack.</param>
 /// <param name="isLowCostSpell">If true, a minor mana restoration item will be used if the
 /// caster lacks sufficient mana to cast the spell. If false, a major mana restoration item
 /// will be used instead.</param>
 /// <returns>True if a spell is cast. False otherwise.</returns>
 public async Task <bool> Zap(Npc target, bool isLowCostSpell = false)
 {
     return(await SpellCommands.CastTargetableSpell(Self, ZapSpell, target, isLowCostSpell));
 }