summaryrefslogtreecommitdiff
path: root/world/map/npc/052-1
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2014-07-23 21:24:29 -0500
committerwushin <pasekei@gmail.com>2014-07-23 21:24:29 -0500
commit461af7da143051fbc6d1cb6949e051ab80724d2c (patch)
treefc46cc9f9ce9fb784289e077e66e754377689f91 /world/map/npc/052-1
parent27140b4290b7b3ddbf6b847d24340cab27304b8f (diff)
downloadserverdata-461af7da143051fbc6d1cb6949e051ab80724d2c.tar.gz
serverdata-461af7da143051fbc6d1cb6949e051ab80724d2c.tar.bz2
serverdata-461af7da143051fbc6d1cb6949e051ab80724d2c.tar.xz
serverdata-461af7da143051fbc6d1cb6949e051ab80724d2c.zip
Fixed Attachrid calls
Diffstat (limited to 'world/map/npc/052-1')
-rw-r--r--world/map/npc/052-1/channelling.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/world/map/npc/052-1/channelling.txt b/world/map/npc/052-1/channelling.txt
index 6348840a..34633ac5 100644
--- a/world/map/npc/052-1/channelling.txt
+++ b/world/map/npc/052-1/channelling.txt
@@ -178,9 +178,8 @@ OnTimer11000:
end;
S_ItemSpawn:
- if (isloggedin(getcharid(3, $@illia_char_channelling$)) == 0)
+ if (!(attachrid(getcharid(3, $@illia_char_channelling$))))
goto L_Return;
- attachrid(getcharid(3, $@illia_char_channelling$));
// spawn items at random
set $@illia_item_spawn_i, rand(getarraysize($@illia_small_lazurites)/2);
set $@illia_item_spawn_x, $@illia_small_lazurites[$@illia_item_spawn_i*2];
@@ -228,9 +227,8 @@ S_CheckChannelling:
set $@illia_magic_power_status, 2;
// Player loses a part of his health while channelling
- if (isloggedin(getcharid(3, $@illia_char_channelling$)) == 0)
+ if (!(attachrid(getcharid(3, $@illia_char_channelling$))))
goto L_ChannellingFail;
- attachrid(getcharid(3, $@illia_char_channelling$));
// Display an effect showing the drain
misceffect FX_CHANNELLING_RAISE;
percentheal -4, 0;