diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-20 21:14:55 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-20 21:14:55 +0000 |
commit | 5995a4e648b9103d68c4a47651da1a244feeb3e9 (patch) | |
tree | 5e5fe9e33b89a1493688f9f9a21135ed76ea5a00 /src/map/status.c | |
parent | 2f45dbbd00c0152591a26e032e67f738cf3d129e (diff) | |
download | hercules-5995a4e648b9103d68c4a47651da1a244feeb3e9.tar.gz hercules-5995a4e648b9103d68c4a47651da1a244feeb3e9.tar.bz2 hercules-5995a4e648b9103d68c4a47651da1a244feeb3e9.tar.xz hercules-5995a4e648b9103d68c4a47651da1a244feeb3e9.zip |
- Increased Improve Concentration's hide-revealing range to 3 (7x7)
- Cleaned up a bit the Ankle Snare status code.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10042 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/map/status.c b/src/map/status.c index bc7b5130c..076b8c573 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -4442,6 +4442,10 @@ int status_get_sc_def(struct block_list *bl, int type) case SC_CONFUSION: sc_def = 300 +50*status->str +50*status->int_; break; + case SC_ANKLE: + sc_def = 100*status->agi; + break; + default: return 0; //Effect that cannot be reduced? Likely a buff. } @@ -5723,12 +5727,6 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val tick /= 5; //TODO: Reduce skill's duration. But for how long? break; case SC_ANKLE: - if (sd && battle_config.pc_sc_def_rate != 100) - tick -= tick*status->agi*battle_config.pc_sc_def_rate/10000; - else if (battle_config.mob_sc_def_rate != 100) - tick -= tick*status->agi*battle_config.mob_sc_def_rate/10000; - else - tick -= tick*status->agi/100; if(status->mode&MD_BOSS) // Lasts 5 times less on bosses tick /= 5; // Minimum trap time of 3+0.03*skilllv seconds [celest] |