diff options
author | shennetsind <ind@henn.et> | 2013-06-20 09:27:16 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-06-20 09:27:16 -0300 |
commit | c461dc00be5182be312b04b0e0cb87b37874e02c (patch) | |
tree | 234edd057f750b86239ceef61cb8be3373936127 /src/map | |
parent | d9a194304a99dce95147537900f7c39436e24cc9 (diff) | |
parent | df956fefed1d82af4025d255f29d71b9db221f96 (diff) | |
download | hercules-c461dc00be5182be312b04b0e0cb87b37874e02c.tar.gz hercules-c461dc00be5182be312b04b0e0cb87b37874e02c.tar.bz2 hercules-c461dc00be5182be312b04b0e0cb87b37874e02c.tar.xz hercules-c461dc00be5182be312b04b0e0cb87b37874e02c.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/battle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c index ace947aca..800d573a2 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -820,7 +820,7 @@ int battle_calc_elefix(struct block_list *src, struct block_list *target, uint16 { // Descriptions indicate this means adding a percent of a normal attack in another element. [Skotlex] damage = #ifndef RENEWAL - battle->calc_base_damage(sstatus, &sstatus->rhw, sc, tstatus->size, ((TBL_PC*)src), (flag?2:0)) + battle->calc_base_damage(sstatus, &sstatus->rhw, sc, tstatus->size, BL_CAST(BL_PC, src), (flag?2:0)) #else battle->calc_base_damage(src, target, skill_id, skill_lv, nk, n_ele, s_ele, s_ele_, EQI_HAND_R, (flag?2:0)|(sc && sc->data[SC_MAXIMIZEPOWER]?1:0)|(sc && sc->data[SC_WEAPONPERFECT]?8:0), 0) #endif @@ -830,7 +830,7 @@ int battle_calc_elefix(struct block_list *src, struct block_list *target, uint16 if( left ){ damage = #ifndef RENEWAL - battle->calc_base_damage(sstatus, &sstatus->lhw, sc, tstatus->size, ((TBL_PC*)src), (flag?2:0)) + battle->calc_base_damage(sstatus, &sstatus->lhw, sc, tstatus->size, BL_CAST(BL_PC, src), (flag?2:0)) #else battle->calc_base_damage(src, target, skill_id, skill_lv, nk, n_ele, s_ele, s_ele_, EQI_HAND_L, (flag?2:0)|(sc && sc->data[SC_MAXIMIZEPOWER]?1:0)|(sc && sc->data[SC_WEAPONPERFECT]?8:0), 0) #endif |