/// <summary>
        /// Teleports to the opposite side of the target in front of the caster
        /// and performs a physical attack on that target.
        /// </summary>
        /// <returns>True if the spell was cast; false otherwise.</returns>
        public async Task Ambush()
        {
            await Self.Activity.WaitForMeleeCooldown();

            if (await SpellCommands.CastSpell(Self, _ambushSpell, true))
            {
                Self.Activity.ResetCommandCooldown();
            }
        }
 /// <summary>
 /// Casts a non-targetable, self-heal spell.
 /// </summary>
 /// <returns>True if the spell was cast; false otherwise.</returns>
 public async Task <bool> HealSelf()
 {
     return(await SpellCommands.CastSpell(_self, _healSelfSpell));
 }
Esempio n. 3
0
 /// <summary>
 /// Teleports to the opposite side of the target in front of the caster
 /// and performs a physical attack on that target.
 /// </summary>
 /// <returns>True if the spell was cast; false otherwise.</returns>
 public async Task <bool> Ambush()
 {
     return(await SpellCommands.CastSpell(Self, _ambushSpell, true));
 }
Esempio n. 4
0
 /// <summary>
 /// Casts an Enchantment buff.
 /// </summary>
 /// <returns>True if the spell was cast; false otherwise.</returns>
 public async Task Enchant()
 {
     await SpellCommands.CastSpell(Self, _enchantSpell);
 }