Corrected NPC_DARKBREATH formula (#7285)

* Corrected NPC_DARKBREATH formula
Fixes #7284

* Update src/map/battle.cpp

Co-authored-by: Pokye <98105181+Pokye@users.noreply.github.com>

* Update src/map/battle.cpp

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>

* Added renewal logic

* now uses only one formula for both modes

---------

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Co-authored-by: Pokye <98105181+Pokye@users.noreply.github.com>
This commit is contained in:
Singe Horizontal 2023-04-20 10:13:37 +02:00 committed by GitHub
parent 9df8f9f113
commit 9051fc644d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7246,7 +7246,7 @@ struct Damage battle_calc_magic_attack(struct block_list *src,struct block_list
}
break;
case NPC_DARKBREATH:
ad.damage = tstatus->hp * (skill_lv <= 5 ? 100 / (2 * 6 - skill_lv) : 50) / 100;
ad.damage = tstatus->hp * (skill_lv <= 5 ? 100 / (2 * (6 - skill_lv)) : 50) / 100;
break;
case PF_SOULBURN:
ad.damage = tstatus->sp * 2;