summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-02 01:41:11 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-02 01:41:11 -0300
commit93edb8df66108774739fa48d954a3c363ea327d0 (patch)
treec6a7cc749655d660fa3d60bf73f3fa54ab6f5fe7
parent2fb5af759cf8a436692e3680e6f3d2061e19bf41 (diff)
downloadserverdata-93edb8df66108774739fa48d954a3c363ea327d0.tar.gz
serverdata-93edb8df66108774739fa48d954a3c363ea327d0.tar.bz2
serverdata-93edb8df66108774739fa48d954a3c363ea327d0.tar.xz
serverdata-93edb8df66108774739fa48d954a3c363ea327d0.zip
Fix a bug on summoning when disallowed to (PS. Aegis Shield overrides alignment!)
-rw-r--r--npc/config/magic.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt
index e47392e9e..ed6a8dbc7 100644
--- a/npc/config/magic.txt
+++ b/npc/config/magic.txt
@@ -246,9 +246,11 @@ function script alignment_cansummon {
if (!@hatesummon) {
dispbottom l("Nature itself express hate against you!");
getmapxy(.@m$, .@x, .@y, 0);
- // FIXME: .@mob is or may be undefined
- .@opo=monster(.@m$, .@x, .@y, "Failed summon", .@mob, 1);
+ // NOTE: .@mob is or may be undefined, so use EntAbomination
+ .@opo=monster(.@m$, .@x, .@y, "Failed summon", EntAbomination, 1);
unitattack(.@opo, getcharid(3));
+ setunitdata(.@opo, UDT_MAXHP, BaseLevel*140);
+ setunitdata(.@opo, UDT_HP, BaseLevel*140);
@hatesummon=true;
}
return false;