summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-07 17:46:50 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-07 17:46:50 +0000
commit15d86669fb2fcedefa83d76cfe8b4bf3f110d481 (patch)
tree220c52dc83b47308bef9a1efbc7789e39e31824c /src/map/pc.c
parentcaa2c43f341ab070ff82d99410ffab773ba19e72 (diff)
downloadhercules-15d86669fb2fcedefa83d76cfe8b4bf3f110d481.tar.gz
hercules-15d86669fb2fcedefa83d76cfe8b4bf3f110d481.tar.bz2
hercules-15d86669fb2fcedefa83d76cfe8b4bf3f110d481.tar.xz
hercules-15d86669fb2fcedefa83d76cfe8b4bf3f110d481.zip
- Updated the range of BioExplosion and Self Destruction so they count as ranged skills.
- Removed old script bonuses bMatk, bMatk1, bMatk2 - Fixed char-server not sending online notification when a party member logs in. - When skill range by distance is set, the distance checked for is now 5 cells rather than 3. - Fixed bMatkRate bonuses not applying to status earned modifications to int/matk. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9816 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c27
1 files changed, 3 insertions, 24 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index a0741f10d..307fb791c 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1338,26 +1338,6 @@ int pc_bonus(struct map_session_data *sd,int type,int val)
status->batk = cap_value(bonus, 0, USHRT_MAX);
}
break;
- case SP_MATK1:
- if(sd->state.lr_flag != 2) {
- bonus = status->matk_max + val;
- status->matk_max = cap_value(bonus, 0, USHRT_MAX);
- }
- break;
- case SP_MATK2:
- if(sd->state.lr_flag != 2) {
- bonus = status->matk_min + val;
- status->matk_min = cap_value(bonus, 0, USHRT_MAX);
- }
- break;
- case SP_MATK:
- if(sd->state.lr_flag != 2) {
- bonus = status->matk_max + val;
- status->matk_max = cap_value(bonus, 0, USHRT_MAX);
- bonus = status->matk_min + val;
- status->matk_min = cap_value(bonus, 0, USHRT_MAX);
- }
- break;
case SP_DEF1:
if(sd->state.lr_flag != 2) {
bonus = status->def + val;
@@ -4639,10 +4619,9 @@ int pc_resetlvl(struct map_session_data* sd,int type)
pc_unequipitem(sd,sd->equip_index[i],2);
}
- if ((type == 1 || type == 2 || type == 3) && sd->status.party_id) {
- //Send map-change packet to do a level range check and break party settings. [Skotlex]
- party_send_movemap(sd);
- }
+ if ((type == 1 || type == 2 || type == 3) && sd->status.party_id)
+ party_send_levelup(sd);
+
status_calc_pc(sd,0);
clif_skillinfoblock(sd);