summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-25 13:34:43 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-25 13:34:43 +0000
commit25e3d584866b386b37232320457e6cf1bdcf3d87 (patch)
tree9cb3f303013ba7f0aa72bf6fd4c2837c963f8d24 /src/map/status.c
parent526698e336a4d13c61a20e9fbf26c04a919c2950 (diff)
downloadhercules-25e3d584866b386b37232320457e6cf1bdcf3d87.tar.gz
hercules-25e3d584866b386b37232320457e6cf1bdcf3d87.tar.bz2
hercules-25e3d584866b386b37232320457e6cf1bdcf3d87.tar.xz
hercules-25e3d584866b386b37232320457e6cf1bdcf3d87.zip
- MG_STONECURSE and NPC_PETRIFYATTACK now use time1 to specify the "petrifying time". This value has been set to 5 seconds.
- Now when SC_STONE is triggered from status-change cards, it's petrifying duration will be passed as 0, causing the minimum (1 sec) to be used. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9066 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 26e13b401..126ee5ae1 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -4993,7 +4993,9 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
if (!val2) val2 = 1;
val3 = tick/1000; //Petrified HP-damage iterations.
if(val3 < 1) val3 = 1;
- tick = 5000; //Petrifying time.
+ tick = val4; //Petrifying time.
+ if (tick < 1000)
+ tick = 1000; //Min time
calc_flag = 0; //Actual status changes take effect on petrified state.
break;