diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-04-30 19:38:29 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-30 19:41:15 -0400 |
commit | 2120bf7eb41dab7b856324c7b6eb5e657c79feca (patch) | |
tree | 45c09a9278a5d065eccf6b2663b48b13a8a64552 /world | |
parent | f778b511c7c30b8a9332c4d920d3c458f63c070d (diff) | |
download | serverdata-2120bf7eb41dab7b856324c7b6eb5e657c79feca.tar.gz serverdata-2120bf7eb41dab7b856324c7b6eb5e657c79feca.tar.bz2 serverdata-2120bf7eb41dab7b856324c7b6eb5e657c79feca.tar.xz serverdata-2120bf7eb41dab7b856324c7b6eb5e657c79feca.zip |
check line of sight in `itenplz` spell
Diffstat (limited to 'world')
-rw-r--r-- | world/map/npc/magic/level1-aggravate.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/world/map/npc/magic/level1-aggravate.txt b/world/map/npc/magic/level1-aggravate.txt index 05474a2a..bad64e02 100644 --- a/world/map/npc/magic/level1-aggravate.txt +++ b/world/map/npc/magic/level1-aggravate.txt @@ -10,7 +10,13 @@ set Sp, Sp - 3; misceffect FX_MAGIC_GREEN, strcharinfo(0); callfunc "magic_exp"; - aggravate getmap(), (POS_X - @distance), (POS_Y - @distance), (POS_X + @distance), (POS_Y + @distance), SFX_DEFAULT; + foreach 2, getmap(), (POS_X - @distance), (POS_Y - @distance), (POS_X + @distance), (POS_Y + @distance), strnpcinfo(0) + "::OnMob"; + end; + +OnMob: + if (target(BL_ID, @target_id, 0x20) != 0x20) end; // line of sight + aggravate @target_id; + misceffect SFX_DEFAULT, @target_id; end; OnInit: |