diff options
-rw-r--r-- | npc/config/magic.txt | 10 |
1 files changed, 10 insertions, 0 deletions
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!"); } |