示例#1
0
        public static Spell Create(SpellEntry entry, Mobile caster, Item scroll = null, bool spellStrike = false)
        {
            var spell = SpellRegistry.Create(entry, caster, scroll);

            spell.Caster        = caster;
            spell.Scroll        = scroll;
            spell.m_SpellStrike = spellStrike;

            return(spell);
        }
示例#2
0
        public static T Create <T>(Mobile caster, Item scroll = null, bool spellStrike = false) where T : Spell
        {
            var spell = SpellRegistry.Create <T>(caster, scroll);

            spell.Caster        = caster;
            spell.Scroll        = scroll;
            spell.m_SpellStrike = spellStrike;

            return(spell);
        }