From 7dde5a1b2b8338dfea84ef5d4671f3bf7927fd75 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 26 Jun 2020 01:40:23 -0300 Subject: Summoning Magic: If you fail, there'll be a re-roll. If you pass this re-roll, then the summoning will complete - but at weakest and only 1 unit. However, if you fail both, is overwhelmed by magic, and 33% chances... ...The spell will backfire, and one unit of what you were summoning will attack you --- npc/config/magic.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'npc') diff --git a/npc/config/magic.txt b/npc/config/magic.txt index e1cd51880..81c23de5f 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -199,6 +199,16 @@ function script SK_summon { if (rand2(5) < abizit()) { // Summon Magic (with magic level bonus) SummonMagic(@skillId, .@mob, .@amt, MAGIC_LVL+@skillLv-1, @skillLv); + } else if (rand2(5) < abizit()) { + // Re-roll + dispbottom l("You cannot complete the casting correctly!"); + SummonMagic(@skillId, .@mob, 1, 1, 1); + } else if (abizit() <= 1 && any(true, false, false)) { + // Spell overwhelms you, causing it to be spawned as aggro vs you. (33%) + dispbottom l("The spell takes a mind of its own backfires!"); + getmapxy(.@m$, .@x, .@y, 0); + .@opo=monster(.@m$, .@x, .@y, "Failed summon", .@mob, 1); + unitattack(.@opo, getcharid(3)); } else { dispbottom l("The spell fails!"); } -- cgit v1.2.3-60-g2f50