summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 8fbde066d..5f2cfac2d 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -1212,6 +1212,13 @@ function script set_aggro {
return;
}
+function script immortal {
+ .@u=getarg(0);
+ setunitdata(.@u, UDT_HP, 2147483647);
+ setunitdata(.@u, UDT_MAXHP, 2147483647);
+ return;
+}
+
// Special function which makes a date as a number
// numdate( - )
function script numdate {