ACR_CreatureBehavior.CreatureObject._GetKnownSelfBuff C# (CSharp) Метод

_GetKnownSelfBuff() приватный Метод

This seeks a known talent which can provide benefit to oneself.
private _GetKnownSelfBuff ( ) : NWScript.NWScriptEngineStructure3
Результат 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;
        }