summaryrefslogtreecommitdiff
path: root/npc/config/magic.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-19 21:25:36 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-19 21:25:36 -0300
commitdf0687a362dc4155ec809508b1320768cabc8a80 (patch)
tree17e5a2de14cd9e401a4d5360c85f6bd0a37ba2d0 /npc/config/magic.txt
parentd1239e5dbddb9556aaabdecae728271d8f9c0dbf (diff)
downloadserverdata-df0687a362dc4155ec809508b1320768cabc8a80.tar.gz
serverdata-df0687a362dc4155ec809508b1320768cabc8a80.tar.bz2
serverdata-df0687a362dc4155ec809508b1320768cabc8a80.tar.xz
serverdata-df0687a362dc4155ec809508b1320768cabc8a80.zip
Definite: Nullify every standard summon skill if alignment is evil.
Reagents will be taken, but none will heed your call. PS. These skills are not supposed to show up
Diffstat (limited to 'npc/config/magic.txt')
-rw-r--r--npc/config/magic.txt4
1 files changed, 4 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);