summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-01 21:10:58 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-01 21:10:58 +0000
commit022f002f01d42e9adaf5c84aec0290bafb450fde (patch)
tree062d4d3c0ba59970dbc43f0598655068b75553b2
parent45d3f5988a75efbf437e7916b9fe9febe61e2352 (diff)
downloadhercules-022f002f01d42e9adaf5c84aec0290bafb450fde.tar.gz
hercules-022f002f01d42e9adaf5c84aec0290bafb450fde.tar.bz2
hercules-022f002f01d42e9adaf5c84aec0290bafb450fde.tar.xz
hercules-022f002f01d42e9adaf5c84aec0290bafb450fde.zip
- Fixed pc_damage setting your canlog_tick even if the damage has no source (eg: poison, berserk)
- Berserk's aspd bonus now stacks with other aspd bonuses, and is unaffected by Quagmire/Forget-me-not. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6916 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt4
-rw-r--r--src/map/pc.c9
-rw-r--r--src/map/status.c6
3 files changed, 14 insertions, 5 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index a222b8c5e..22bdb60fc 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,10 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/06/01
+ * Fixed pc_damage setting your canlog_tick even if the damage has no source
+ (eg: poison, berserk) [Skotlex]
+ * Berserk's aspd bonus now stacks with other aspd bonuses, but is still
+ affected by Quagmire/Forget-me-not. [Skotlex]
* Corrected setting slaves_inherit_mode to not apply to morphosis skills.
[Skotlex]
* Corrected pc_setoption to invoke status_calc_pc when getting/removing the
diff --git a/src/map/pc.c b/src/map/pc.c
index 91732ab2a..f39b6b33a 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4510,9 +4510,6 @@ void pc_damage(struct map_session_data *sd,struct block_list *src,unsigned int h
skill_rest(sd,0);
}
- if(sd->status.pet_id > 0 && sd->pd && battle_config.pet_damage_support)
- pet_target_check(sd,src,1);
-
clif_updatestatus(sd,SP_HP);
if (sd->battle_status.hp<sd->battle_status.max_hp>>2)
@@ -4526,6 +4523,12 @@ void pc_damage(struct map_session_data *sd,struct block_list *src,unsigned int h
}
}
+ if(!src || src == &sd->bl)
+ return;
+
+ if(sd->status.pet_id > 0 && sd->pd && battle_config.pet_damage_support)
+ pet_target_check(sd,src,1);
+
sd->canlog_tick = gettick();
return;
}
diff --git a/src/map/status.c b/src/map/status.c
index 7dce072f0..4bb09130d 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3190,8 +3190,7 @@ static short status_calc_aspd_rate(struct block_list *bl, struct status_change *
if(sc->data[SC_STAR_COMFORT].timer!=-1)
max = sc->data[SC_STAR_COMFORT].val2;
if((sc->data[SC_TWOHANDQUICKEN].timer!=-1 ||
- sc->data[SC_ONEHAND].timer!=-1 ||
- sc->data[SC_BERSERK].timer!=-1
+ sc->data[SC_ONEHAND].timer!=-1
) && max < 30)
max = 30;
@@ -3238,6 +3237,9 @@ static short status_calc_aspd_rate(struct block_list *bl, struct status_change *
}
}
aspd_rate -= max;
+
+ if(sc->data[SC_BERSERK].timer!=-1)
+ aspd_rate -= 30; //Stacks with the rest of bonuses.
}
if(sc->data[i=SC_ASPDPOTION3].timer!=-1 ||
sc->data[i=SC_ASPDPOTION2].timer!=-1 ||