public override void OnSpellEffect(SpellPacketBody spell)
    {
        var selection = PlanarAllies.choose_allies(spell.caster, 3, 6, 1);

        spell.duration = 10 * spell.casterLevel;
        SpawnParticles("sp-Summon Monster III", spell.aoeCenter);
        spell.SummonMonsters(true, selection[0]);
        // There seems to be no provision for experience costs, so
        // this is the best we can do.
        spell.caster.AwardExperience(-100);
        spell.EndSpell();
    }
Exemple #2
0
    public override void OnSpellEffect(SpellPacketBody spell)
    {
        spell.duration = 10 * spell.casterLevel;
        var selection = PlanarAllies.choose_allies(spell.caster, 4, 12, 2);

        SpawnParticles("sp-Summon Monster IV", spell.aoeCenter);
        foreach (var n in selection)
        {
            spell.SummonMonsters(true, n);
        }

        spell.caster.AwardExperience(-250);
        spell.EndSpell();
    }