Esempio n. 1
0
        /// <summary>
        /// Casts the Hellfire attack spell on a target.
        /// </summary>
        /// <param name="target">The NPC to target for the attack.</param>
        /// <returns>True if the spell was cast; false otherwise.</returns>
        public async Task <bool> Hellfire(Npc target)
        {
            if (_hellfireStatus.IsActive) // Potentially redundant but required to avoid unnecessary casting of Doze/Sleep.
            {
                return(false);
            }

            if (!await _self.Commands.Debuffs.Doze(target))
            {
                await _self.Commands.Debuffs.Sleep(target);
            }

            return(await SpellCommands.CastAetheredTargetableSpell(Self, _hellfireSpell, _hellfireStatus, target));
        }
Esempio n. 2
0
 private async Task <bool> Restore(uint targetUid, string targetName)
 {
     return(await SpellCommands.CastAetheredTargetableSpell(_self, _restoreSpell, _self.Status.Restore, targetUid, targetName));
 }