summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-25 21:41:31 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-03-25 21:41:31 +0000
commit2834d8d8106b37b54b8c89826ac4a18721e4411c (patch)
tree27e3cda2468940e918a5205c7c3c8297314704e3 /src/map/script.c
parentfc135d64a1ad6b36d807e6b7ab9d804bffe95e48 (diff)
downloadhercules-2834d8d8106b37b54b8c89826ac4a18721e4411c.tar.gz
hercules-2834d8d8106b37b54b8c89826ac4a18721e4411c.tar.bz2
hercules-2834d8d8106b37b54b8c89826ac4a18721e4411c.tar.xz
hercules-2834d8d8106b37b54b8c89826ac4a18721e4411c.zip
Partially fixed the mess in status.c.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12433 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 438fde722..9aa292e63 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -8110,9 +8110,9 @@ BUILDIN_FUNC(sc_start)
else
bl = map_id2bl(st->rid);
- if( tick == 0 && val1 > 0 && type >= 0 && type < SC_MAX && StatusSkillChangeTable[type] != 0 )
+ if( tick == 0 && val1 > 0 && type >= 0 && type < SC_MAX && status_sc2skill(type) != 0 )
{// When there isn't a duration specified, try to get it from the skill_db
- tick = skill_get_time(StatusSkillChangeTable[type], val1);
+ tick = skill_get_time(status_sc2skill(type), val1);
}
if( potion_flag == 1 && potion_target )
@@ -8148,9 +8148,9 @@ BUILDIN_FUNC(sc_start2)
else
bl = map_id2bl(st->rid);
- if( tick == 0 && val1 > 0 && type >= 0 && type < SC_MAX && StatusSkillChangeTable[type] != 0 )
+ if( tick == 0 && val1 > 0 && type >= 0 && type < SC_MAX && status_sc2skill(type) != 0 )
{// When there isn't a duration specified, try to get it from the skill_db
- tick = skill_get_time(StatusSkillChangeTable[type], val1);
+ tick = skill_get_time(status_sc2skill(type), val1);
}
if( potion_flag == 1 && potion_target )
@@ -8190,9 +8190,9 @@ BUILDIN_FUNC(sc_start4)
else
bl = map_id2bl(st->rid);
- if( tick == 0 && val1 > 0 && type >= 0 && type < SC_MAX && StatusSkillChangeTable[type] != 0 )
+ if( tick == 0 && val1 > 0 && type >= 0 && type < SC_MAX && status_sc2skill(type) != 0 )
{// When there isn't a duration specified, try to get it from the skill_db
- tick = skill_get_time(StatusSkillChangeTable[type], val1);
+ tick = skill_get_time(status_sc2skill(type), val1);
}
if( potion_flag == 1 && potion_target )