diff options
Diffstat (limited to 'npc/config')
-rw-r--r-- | npc/config/magic.txt | 6 |
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; |