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); }
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); }