summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-08-22 16:59:09 -0300
committershennetsind <ind@henn.et>2013-08-22 16:59:09 -0300
commit7f9f6e1b84061a7d393debf37395c8b4a2667db1 (patch)
tree8bc09c3f8bc0ca5f7fa0ecaed9f3fa42829f67b5 /src/map/skill.c
parent02251a52a5f62122a54434399638dd7f66ea67d4 (diff)
downloadhercules-7f9f6e1b84061a7d393debf37395c8b4a2667db1.tar.gz
hercules-7f9f6e1b84061a7d393debf37395c8b4a2667db1.tar.bz2
hercules-7f9f6e1b84061a7d393debf37395c8b4a2667db1.tar.xz
hercules-7f9f6e1b84061a7d393debf37395c8b4a2667db1.zip
Fixed Bug #7652
damage storage has been changed from int32 to int64 within areas where it could otherwise modified beyond the limit and get screwed up, this solves all related problems within any skills, not only asura. http://hercules.ws/board/tracker/issue-7652-asura-strike-overdamage/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 1b732baaa..9befc1d32 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2156,7 +2156,8 @@ int skill_attack (int attack_type, struct block_list* src, struct block_list *ds
struct status_data *sstatus, *tstatus;
struct status_change *sc;
struct map_session_data *sd, *tsd;
- int type,damage;
+ int type;
+ int64 damage;
int8 rmdamage=0;//magic reflected
bool additional_effects = true;
@@ -12118,7 +12119,7 @@ int skill_unit_effect (struct block_list* bl, va_list ap) {
/*==========================================
*
*------------------------------------------*/
-int skill_unit_ondamaged (struct skill_unit *src, struct block_list *bl, int damage, unsigned int tick)
+int skill_unit_ondamaged (struct skill_unit *src, struct block_list *bl, int64 damage, unsigned int tick)
{
struct skill_unit_group *sg;