Esempio n. 1
0
        public bool Init(int nSpellID, ref Vector3 Targetpos, float fDir, ref X_GUID guidTarget)
        {
            LogManager.LogAssert(m_pHolder);
            if (nSpellID == -1)
            {
                LogManager.LogAssert(0);
            }

            SpellInfo pSpellInfo = m_pHolder.GetSpellInfo(nSpellID);

            if (pSpellInfo != null)
            {
                m_pSpellInfo          = pSpellInfo;
                m_SpellTargetDir      = fDir;
                m_SpellTargetPosition = Targetpos;
                m_SpellTarget.Copy(guidTarget);
            }

            return(true);
        }