summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 03:18:22 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-07 03:18:22 +0000
commit8081589782ca857622c3d1c06e80894519a3bd46 (patch)
tree92eda19649ee8e87706eb6757045b881ff6bc1e2 /src/map/skill.c
parent1300e71f7b19b820dae2a984c9f59ac32c13d6c7 (diff)
downloadhercules-8081589782ca857622c3d1c06e80894519a3bd46.tar.gz
hercules-8081589782ca857622c3d1c06e80894519a3bd46.tar.bz2
hercules-8081589782ca857622c3d1c06e80894519a3bd46.tar.xz
hercules-8081589782ca857622c3d1c06e80894519a3bd46.zip
- Cleaned status_get_sc_tick/status_get_sc_def to use the status_data function.
- SC_STOP's chance and duration can't be reduced anymore. - Storm Gust no longer has a 100% chance to freeze by passing mdef, now it has a 300% base chance reduced by mdef and the like as explained out by Tharis. - Frost Diver/Frost Nova's base freezing chance is no longer affected by target's int. - Lots of indentation fixes in login_sql/login.c to make it match with stable's layout. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7025 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 6bd7e0d4a..f6cb70c48 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1075,21 +1075,15 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int
sc_start(bl,type,100,skilllv,skill_get_time2(skillid, skilllv));
break;
}
- case MG_FROSTDIVER: /* ƒtƒ?ƒXƒgƒ_ƒCƒo? */
- case WZ_FROSTNOVA: /* ƒtƒ?ƒXƒgƒmƒ”ƒ@ */
- {
- rate = (skilllv*3+35)-(tstatus->int_ + tstatus->luk)/15;
- if (rate <= 5)
- rate = 5;
- sc_start(bl,SC_FREEZE,rate,skilllv,skill_get_time2(skillid,skilllv));
- }
+ case MG_FROSTDIVER:
+ case WZ_FROSTNOVA:
+ sc_start(bl,SC_FREEZE,skilllv*3+35,skilllv,skill_get_time2(skillid,skilllv));
break;
- case WZ_STORMGUST: /* ƒXƒg?ƒ€ƒKƒXƒg */
+ case WZ_STORMGUST:
tsc->data[SC_FREEZE].val3++;
- if(tsc->data[SC_FREEZE].val3 >= 3)
- status_change_start(bl,SC_FREEZE,10000,
- skilllv,0,0,0,skill_get_time2(skillid,skilllv),8);
+ if(tsc->data[SC_FREEZE].val3 >= 3) //Tharis pointed out that this is normal freeze chance with a base of 300%
+ sc_start(bl,SC_FREEZE,300,skilllv,skill_get_time2(skillid,skilllv));
break;
case WZ_METEOR: