diff options
author | gumi <git@gumi.ca> | 2018-11-11 17:18:14 -0500 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-11-11 22:36:15 -0500 |
commit | 0e1a7f000ccdcf6f84ec66192b025f261772cdb3 (patch) | |
tree | 7367604274d14b0fdabae946985ef30fc71aa8de /world/map/npc/magic/level2-lay-on-hands.txt | |
parent | 15e556361dabcee7d215cb6aeb2f157d30c0963a (diff) | |
download | serverdata-0e1a7f000ccdcf6f84ec66192b025f261772cdb3.tar.gz serverdata-0e1a7f000ccdcf6f84ec66192b025f261772cdb3.tar.bz2 serverdata-0e1a7f000ccdcf6f84ec66192b025f261772cdb3.tar.xz serverdata-0e1a7f000ccdcf6f84ec66192b025f261772cdb3.zip |
give unique ids to magic spell effects
Diffstat (limited to 'world/map/npc/magic/level2-lay-on-hands.txt')
-rw-r--r-- | world/map/npc/magic/level2-lay-on-hands.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/world/map/npc/magic/level2-lay-on-hands.txt b/world/map/npc/magic/level2-lay-on-hands.txt index 13875381..de959c96 100644 --- a/world/map/npc/magic/level2-lay-on-hands.txt +++ b/world/map/npc/magic/level2-lay-on-hands.txt @@ -20,8 +20,8 @@ L_Pay: set @_M_BLOCK, 1; // block casting, until the timer clears it addtimer 500, "Magic Timer::OnClear"; // XXX should this be 0 ? set Sp, Sp - 10; - misceffect FX_MAGIC_WHITE, strcharinfo(0); // on caster - misceffect FX_MAGIC_WHITE, @args$; // on target + misceffect FX_MAGIC_LAY_CAST, strcharinfo(0); // on caster + misceffect FX_MAGIC_LAY_HIT, @args$; // on target if (get(Hp, @target_id) < 1) end; @@ -38,7 +38,7 @@ L_Pay: set .@dark, getskilllv(SKILL_MAGIC_DARK) >= 2; // true if dark magic user set .@bad, (MaxHp/20)*(0-1); - if (.@dark) heal .@bad, 0; + if (.@dark && GM < 20) heal .@bad, 0; sc_start SC_HALT_REGENERATE, if_then_else(.@dark, 5000, 10000), 0; set .@thp, get(Hp, @target_id); @@ -50,8 +50,8 @@ L_Mouboo: set @target_id, getnpcid("Mouboo"); callfunc "adjust_spellpower"; if (distance(BL_ID, @target_id) >= (((sqrt(@spellpower) * 12) + @spellpower) / 100) + 2) end; - misceffect FX_MAGIC_WHITE, strcharinfo(0); // on caster - misceffect FX_MAGIC_WHITE, @target_id; // on target + misceffect FX_MAGIC_LAY_CAST, strcharinfo(0); // on caster + misceffect FX_MAGIC_LAY_HIT, @target_id; // on target callfunc "QuestMoubooHeal"; end; |