예제 #1
0
            protected override async Task <ActivityResult> ExecuteSpecificActivity()
            {
                // If spell is not known at the moment, this is a problem...
                if ((_wowSpell == null) || !_wowSpell.IsValid)
                {
                    QBCLog.Error(_errorMessage_UnknownSpell);
                    return(ActivityResult.Failed);
                }

                return
                    (await UtilityCoroutine.CastSpell(_wowSpell.Id) == SpellCastResult.Succeeded
                        ? ActivityResult.Succeeded
                        : ActivityResult.Failed);
            }