diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/config/magic.txt | 4 | ||||
-rw-r--r-- | npc/magic/plantkingdom.txt | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt index b627c30ab..39b138504 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -151,6 +151,10 @@ function script SK_summon { .@mex=getarg(2); if ($@GM_OVERRIDE || debug) debugmes "Skill "+@skillId+" Lv "+@skillLv; + // Blocked from summoning magic + if (alignment() < 0) + return; + if (rand2(5) < abizit()) { // Summon Magic (with magic level bonus) SummonMagic(@skillId, .@mob, .@amt, MAGIC_LVL+@skillLv-1, @skillLv); diff --git a/npc/magic/plantkingdom.txt b/npc/magic/plantkingdom.txt index 2ee9e314e..0ed87b3b5 100644 --- a/npc/magic/plantkingdom.txt +++ b/npc/magic/plantkingdom.txt @@ -9,6 +9,10 @@ end; OnCall: + // Blocked from summoning magic + if (alignment() < 0) + return; + // Other requeriments: 2x Root if (countitem(Root) < 2) { dispbottom l("You need 2x @@ to cast this skill.", getitemlink(Root)); |