bounds updates
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@797 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
4f93225e23
commit
ca67b45fbd
@ -1,6 +1,6 @@
|
|||||||
Date Added
|
Date Added
|
||||||
12/26
|
12/26
|
||||||
* Fixed some array bounds errors (SVN 796) [MouseJstr]
|
* Fixed some array bounds errors (SVN 797) [MouseJstr]
|
||||||
* @mapexit (and do_final) now persist all data to the
|
* @mapexit (and do_final) now persist all data to the
|
||||||
char server before exiting to eliminate storage/inventory
|
char server before exiting to eliminate storage/inventory
|
||||||
inconsistancies.. [MouseJstr] (SVN 793)
|
inconsistancies.. [MouseJstr] (SVN 793)
|
||||||
|
@ -3026,9 +3026,11 @@ static struct Damage battle_calc_pc_weapon_attack(
|
|||||||
damage += atkmax;
|
damage += atkmax;
|
||||||
damage2 += atkmax_;
|
damage2 += atkmax_;
|
||||||
if(sd->atk_rate != 100 || sd->weapon_atk_rate != 0) {
|
if(sd->atk_rate != 100 || sd->weapon_atk_rate != 0) {
|
||||||
|
if (sd->status.weapon < 16) {
|
||||||
damage = (damage * (sd->atk_rate + sd->weapon_atk_rate[sd->status.weapon]))/100;
|
damage = (damage * (sd->atk_rate + sd->weapon_atk_rate[sd->status.weapon]))/100;
|
||||||
damage2 = (damage2 * (sd->atk_rate + sd->weapon_atk_rate[sd->status.weapon]))/100;
|
damage2 = (damage2 * (sd->atk_rate + sd->weapon_atk_rate[sd->status.weapon]))/100;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(sd->state.arrow_atk)
|
if(sd->state.arrow_atk)
|
||||||
damage += sd->arrow_atk;
|
damage += sd->arrow_atk;
|
||||||
type = 0x0a;
|
type = 0x0a;
|
||||||
|
@ -5105,7 +5105,7 @@ int clif_item_skill(struct map_session_data *sd,int skillid,int skilllv,const ch
|
|||||||
if(range < 0)
|
if(range < 0)
|
||||||
range = battle_get_range(&sd->bl) - (range + 1);
|
range = battle_get_range(&sd->bl) - (range + 1);
|
||||||
WFIFOW(fd,12)=range;
|
WFIFOW(fd,12)=range;
|
||||||
memcpy(WFIFOP(fd,14),name,24);
|
strncpy(WFIFOP(fd,14),name,24);
|
||||||
WFIFOB(fd,38)=0;
|
WFIFOB(fd,38)=0;
|
||||||
WFIFOSET(fd,packet_len_table[0x147]);
|
WFIFOSET(fd,packet_len_table[0x147]);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user