コード例 #1
0
ファイル: Spell.cs プロジェクト: ww386362087/MoyuHero
        public bool ActivePassivityOnce()
        {
            CalcPassivitySpellTarget(ref m_TargetList);
            if (m_TargetList.m_nCount > 0)
            {
                SkillTemplate  pSpellRow   = m_pSpellInfo.GetSpellRow();
                ObjectCreature pScanObject = null;
                for (int TargetIndex = 0; TargetIndex < m_TargetList.m_nCount; TargetIndex++)
                {
                    pScanObject = m_TargetList.m_pObjectList[TargetIndex].m_pTargetObject;

                    for (int m = 0; m < pSpellRow.getBuffList().Length; ++m)
                    {
                        if (pSpellRow.getBuffList()[m] != -1)
                        {
                            pScanObject.AddPassvityImpact(pSpellRow.getBuffList()[m], m_pHolder, false, GetSpellID());
                        }
                    }
                }
            }
            return(true);
        }