summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-25 17:19:57 +0000
committerrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-25 17:19:57 +0000
commita2bc8b2b7c30bd02b8a22c0abbdc711093d852f2 (patch)
tree67ae0fd7dc8c9fcf3d1acd8c6a98503af49b6b56
parentc652d46923e5b95a54ab16cf6ccc8eb74e5f4c08 (diff)
downloadhercules-a2bc8b2b7c30bd02b8a22c0abbdc711093d852f2.tar.gz
hercules-a2bc8b2b7c30bd02b8a22c0abbdc711093d852f2.tar.bz2
hercules-a2bc8b2b7c30bd02b8a22c0abbdc711093d852f2.tar.xz
hercules-a2bc8b2b7c30bd02b8a22c0abbdc711093d852f2.zip
Follow up r16669 updated the new monster hp to its official behavior.
Follow up r16661 added missing configuration for variable cast time reduction through stats. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16704 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--conf/battle/items.conf2
-rw-r--r--conf/battle/skill.conf3
-rw-r--r--src/map/clif.c8
-rw-r--r--src/map/mob.c10
4 files changed, 20 insertions, 3 deletions
diff --git a/conf/battle/items.conf b/conf/battle/items.conf
index 691517b72..7c0ee1ad3 100644
--- a/conf/battle/items.conf
+++ b/conf/battle/items.conf
@@ -34,7 +34,7 @@ potion_produce_rate: 100
// 0x01: Produced Weapons
// 0x02: Produced Potions
// 0x04: Produced Arrows
-// 0x08: Produced Holy Water
+// 0x08: Produced Holy Water/Ancilla
// 0x10: Produced Deadly Potions
// 0x80: Other produced items.
produce_item_name_input: 0x03
diff --git a/conf/battle/skill.conf b/conf/battle/skill.conf
index ee995cb1d..5f64126ec 100644
--- a/conf/battle/skill.conf
+++ b/conf/battle/skill.conf
@@ -40,6 +40,9 @@ no_skill_delay: 2
// At what dex does the cast time become zero (instacast)?
castrate_dex_scale: 150
+// How much (dex*2+int) does variable cast turns zero?
+vcast_stat_scale: 530
+
// What level of leniency should the skill system give for skills when
// accounting attack motion (ASPD) for casting skills (Note 2, between 0 and 100)
//
diff --git a/src/map/clif.c b/src/map/clif.c
index b71c8e21c..508f4991e 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -4139,6 +4139,14 @@ void clif_getareachar_unit(struct map_session_data* sd,struct block_list *bl)
clif_specialeffect_single(bl,423,sd->fd);
else if(md->special_state.size==SZ_MEDIUM)
clif_specialeffect_single(bl,421,sd->fd);
+#if PACKETVER >= 20120404
+ if( !(md->status.mode&MD_BOSS) ){
+ int i;
+ for(i = 0; i < DAMAGELOG_SIZE; i++)// must show hp bar to all char who already hit the mob.
+ if( md->dmglog[i].id == sd->status.char_id )
+ clif_monster_hp_bar(md, sd->fd);
+ }
+#endif
}
break;
case BL_PET:
diff --git a/src/map/mob.c b/src/map/mob.c
index 88ee88713..9653ba32b 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2083,8 +2083,14 @@ void mob_damage(struct mob_data *md, struct block_list *src, int damage)
return;
#if PACKETVER >= 20120404
- if( src->type == BL_PC && !(md->status.mode&MD_BOSS) )
- clif_monster_hp_bar(md, ((TBL_PC*)src)->fd);
+ if( !(md->status.mode&MD_BOSS) ){
+ int i;
+ for(i = 0; i < DAMAGELOG_SIZE; i++){ // must show hp bar to all char who already hit the mob.
+ struct map_session_data *sd = map_charid2sd(md->dmglog[i].id);
+ if( sd && check_distance_bl(&md->bl, &sd->bl, AREA_SIZE) ) // check if in range
+ clif_monster_hp_bar(md, sd->fd);
+ }
+ }
#endif
if( md->special_state.ai == 2 ) {//LOne WOlf explained that ANYONE can trigger the marine countdown skill. [Skotlex]