ACR_CreatureBehavior.CreatureObject._GetKnownSelfBuff C# (CSharp) Method

_GetKnownSelfBuff() private method

This seeks a known talent which can provide benefit to oneself.
private _GetKnownSelfBuff ( ) : NWScript.NWScriptEngineStructure3
return NWScript.NWScriptEngineStructure3
        private NWTalent _GetKnownSelfBuff()
        {
            NWTalent Buff = Script.GetCreatureTalentBest(CLRScriptBase.TALENT_CATEGORY_BENEFICIAL_PROTECTION_SELF, 20, ObjectId, 0);
            if (Script.GetIsTalentValid(Buff) == CLRScriptBase.FALSE)
                Buff = Script.GetCreatureTalentBest(CLRScriptBase.TALENT_CATEGORY_BENEFICIAL_ENHANCEMENT_SELF, 20, ObjectId, 0);
            return Buff;
        }