summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-03 00:27:22 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-03 00:27:22 +0000
commit8ba5f3a15f084a5fe168ccf597884d5e47265e3b (patch)
tree4474f8b29e83537a8b69349309bbf0557267dc3d
parent442f3ce3b9a8af792d874c0b0b62343fa229c7a4 (diff)
downloadhercules-8ba5f3a15f084a5fe168ccf597884d5e47265e3b.tar.gz
hercules-8ba5f3a15f084a5fe168ccf597884d5e47265e3b.tar.bz2
hercules-8ba5f3a15f084a5fe168ccf597884d5e47265e3b.tar.xz
hercules-8ba5f3a15f084a5fe168ccf597884d5e47265e3b.zip
- Moved Full Buster blind penalty to skill_counter_additional_effect
- Added a dummy blind duration of 10 secs to FullBuster. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8082 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--db/Changelog.txt1
-rw-r--r--db/skill_cast_db.txt2
-rw-r--r--src/map/skill.c6
-rw-r--r--src/map/status.c12
4 files changed, 11 insertions, 10 deletions
diff --git a/db/Changelog.txt b/db/Changelog.txt
index 7db7caf85..1c80f0316 100644
--- a/db/Changelog.txt
+++ b/db/Changelog.txt
@@ -20,6 +20,7 @@
=========================
08/02
+ * Added a dummy blind duration of 10 secs to FullBuster. [Skotlex]
* Updated the mob skills so that the marine sphere casts self-destruction
with 3 second cast after it starts walking. [Skotlex]
* Updated Create Arrow to X.4 [Playtester]
diff --git a/db/skill_cast_db.txt b/db/skill_cast_db.txt
index b4afd4299..5ad74815f 100644
--- a/db/skill_cast_db.txt
+++ b/db/skill_cast_db.txt
@@ -872,7 +872,7 @@
//-- GS_DUST
518,1000,1000,0,0,0
//-- GS_FULLBUSTER
-519,1000,1200:1400:1600:1800:2000:2200:2400:2600:2800:3000,0,0,0
+519,1000,1200:1400:1600:1800:2000:2200:2400:2600:2800:3000,0,0,10000
//-- GS_SPREADATTACK
520,0,1000,0,0,0
//-- GS_GROUNDDRIFT
diff --git a/src/map/skill.c b/src/map/skill.c
index 098101f65..47d151f6c 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1362,9 +1362,6 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, int
case GS_PIERCINGSHOT:
sc_start(bl,SC_BLEEDING,(skilllv*3),skilllv,skill_get_time2(skillid,skilllv));
break;
- case GS_FULLBUSTER:
- sc_start(src,SC_BLIND,(2*skilllv),skilllv,skill_get_time2(skillid,1));
- break;
case NJ_HYOUSYOURAKU:
sc_start(bl,SC_FREEZE,(10+10*skilllv),skilllv,skill_get_time2(skillid,skilllv));
break;
@@ -1503,6 +1500,9 @@ int skill_counter_additional_effect (struct block_list* src, struct block_list *
case MO_EXTREMITYFIST:
sc_start(src,SkillStatusChangeTable(skillid),100,skilllv,skill_get_time2(skillid,skilllv));
break;
+ case GS_FULLBUSTER:
+ sc_start(src,SC_BLIND,(2*skilllv),skilllv,skill_get_time2(skillid,skilllv));
+ break;
}
if(sd && skillid && attack_type&BF_MAGIC && status_isdead(bl) &&
diff --git a/src/map/status.c b/src/map/status.c
index 7aeaa39ae..feb497d7a 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1846,17 +1846,17 @@ int status_calc_pc(struct map_session_data* sd,int first)
// Bonuses from cards and equipment as well as base stat, remember to avoid overflows.
i = status->str + sd->status.str + sd->param_bonus[0] + sd->param_equip[0];
- status->str = i<0?0:(i>USHRT_MAX?USHRT_MAX:i);
+ status->str = cap_value(i,0,USHRT_MAX);
i = status->agi + sd->status.agi + sd->param_bonus[1] + sd->param_equip[1];
- status->agi = i<0?0:(i>USHRT_MAX?USHRT_MAX:i);
+ status->agi = cap_value(i,0,USHRT_MAX);
i = status->vit + sd->status.vit + sd->param_bonus[2] + sd->param_equip[2];
- status->vit = i<0?0:(i>USHRT_MAX?USHRT_MAX:i);
+ status->vit = cap_value(i,0,USHRT_MAX);
i = status->int_+ sd->status.int_+ sd->param_bonus[3] + sd->param_equip[3];
- status->int_ = i<0?0:(i>USHRT_MAX?USHRT_MAX:i);
+ status->int_ = cap_value(i,0,USHRT_MAX);
i = status->dex + sd->status.dex + sd->param_bonus[4] + sd->param_equip[4];
- status->dex = i<0?0:(i>USHRT_MAX?USHRT_MAX:i);
+ status->dex = cap_value(i,0,USHRT_MAX);
i = status->luk + sd->status.luk + sd->param_bonus[5] + sd->param_equip[5];
- status->luk = i<0?0:(i>USHRT_MAX?USHRT_MAX:i);
+ status->luk = cap_value(i,0,USHRT_MAX);
// ------ BASE ATTACK CALCULATION ------