diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-12-29 08:15:37 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-12-29 08:15:37 -0300 |
commit | ef41fb9e4cc7a601aff2ff5abcdb63f83e840ed1 (patch) | |
tree | 940641a589e220c078f16f5af984b14937eb5392 /npc/config | |
parent | a442c7213c1ca41ead1c6eb21faded46ea2831d7 (diff) | |
download | serverdata-ef41fb9e4cc7a601aff2ff5abcdb63f83e840ed1.tar.gz serverdata-ef41fb9e4cc7a601aff2ff5abcdb63f83e840ed1.tar.bz2 serverdata-ef41fb9e4cc7a601aff2ff5abcdb63f83e840ed1.tar.xz serverdata-ef41fb9e4cc7a601aff2ff5abcdb63f83e840ed1.zip |
areaharm() and rectharm() can declare the damage source - so use it
Diffstat (limited to 'npc/config')
-rw-r--r-- | npc/config/magic.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/config/magic.txt b/npc/config/magic.txt index afc422793..aaa69ff8a 100644 --- a/npc/config/magic.txt +++ b/npc/config/magic.txt @@ -150,7 +150,7 @@ function script SummonMagic { return; } -// areaharm(target, range, DMG, {type, element, filter, bl}) +// areaharm(caster, range, DMG, {type, element, filter, bl}) // Defaults to HARM_MISC, Ele_Neutral, filter filter_hostile and all BLs // Valid BL: BL_MOB | BL_PC | BL_HOM | BL_MER // Do not use: NPC, PET, ELEM @@ -171,7 +171,7 @@ function script areaharm { // Filtering if (!callfunc(.@f$, .@mbs[.@i])) continue; - harm(.@mbs[.@i], .@d, .@h, .@e); + harm(.@mbs[.@i], .@d, .@h, .@e, .@t); specialeffect(FX_ATTACK, AREA, .@mbs[.@i]); // TODO: Handle MobPt to don't overload timer system? } @@ -179,7 +179,7 @@ function script areaharm { } -// rectharm(target, x, y, DMG, {type, element, filter, bl}) +// rectharm(caster, x, y, DMG, {type, element, filter, bl}) // Same as areaharm() but causes a rectangle in (x,y) size, instead of a square function script rectharm { .@t=getarg(0); @@ -198,7 +198,7 @@ function script rectharm { // Filtering if (!callfunc(.@f$, .@mbs[.@i])) continue; - harm(.@mbs[.@i], .@d, .@h, .@e); + harm(.@mbs[.@i], .@d, .@h, .@e, .@t); specialeffect(FX_ATTACK, AREA, .@mbs[.@i]); // TODO: Handle MobPt to don't overload timer system? } |