summaryrefslogtreecommitdiff
path: root/src/emap/skill.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-09-25 01:52:30 +0300
committerAndrei Karas <akaras@inbox.ru>2018-09-25 01:52:30 +0300
commit505d310c38ab4c2ce80edb082a609959ee0ec5e6 (patch)
tree97ebe470cc15429a305d962ae8d50657066c1e41 /src/emap/skill.c
parentebd03c49cf2196bfe6cc10e64d9249b0e9b4a08e (diff)
downloadevol-hercules-505d310c38ab4c2ce80edb082a609959ee0ec5e6.tar.gz
evol-hercules-505d310c38ab4c2ce80edb082a609959ee0ec5e6.tar.bz2
evol-hercules-505d310c38ab4c2ce80edb082a609959ee0ec5e6.tar.xz
evol-hercules-505d310c38ab4c2ce80edb082a609959ee0ec5e6.zip
Hercules update.
Diffstat (limited to 'src/emap/skill.c')
-rw-r--r--src/emap/skill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emap/skill.c b/src/emap/skill.c
index a45792f..20e4a82 100644
--- a/src/emap/skill.c
+++ b/src/emap/skill.c
@@ -59,8 +59,8 @@ int eskill_check_condition_castend_post(int retVal,
struct event_data* ev = node->data;
if (ev)
{
- pc->setreg(sd, script->add_str("@skillId"), skill_id);
- pc->setreg(sd, script->add_str("@skillLv"), skill_lv);
+ pc->setreg(sd, script->add_variable("@skillId"), skill_id);
+ pc->setreg(sd, script->add_variable("@skillLv"), skill_lv);
script->run(ev->nd->u.scr.script, ev->pos, sd->bl.id, ev->nd->bl.id);
}
node = node->next;