Issue information

Issue ID
#8471
Status
Duplicate
Severity
None
Started
Emistry
Dec 20, 2014 1:30
Last Post
malufett
Dec 20, 2014 14:25
Confirmation
N/A

Emistry - Dec 20, 2014 1:30

[git='src/map/battle.c#L3925'][code=:3925] case GN_HELLS_PLANT_ATK: md.damage = skill_lv * status->get_lv(target) * 10 + sstatus->int_ * 7 / 2 * (18 + (sd ? sd->status.job_level : 0) / 4) * (5 / (10 - (sd ? pc->checkskill(sd, AM_CANNIBALIZE) : 0))); md.damage = md.damage*(1000 + tstatus->mdef) / (1000 + tstatus->mdef * 10) - tstatus->mdef2; break; [/code]
I notice the value for md.damage is calculated 2 times, I think the second like of md.damage calculation is not needed ?
should be the 1st line for damage calculation.