Resolve Death Valley HP/SP adjustment (#8501)

* Fixes #8428.
* The skill will now properly take the SP first before healing HP of the target player.
Thanks to @jamesandrewww!
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
This commit is contained in:
Aleos 2024-07-13 09:47:55 -04:00 committed by GitHub
parent 3b1c33c5d9
commit 4b32621c61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11708,12 +11708,13 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
if( !status_isdead(bl) )
break;
status_zap(bl, 0, tstatus->sp * 10 * skill_lv / 100);
int heal = tstatus->sp;
if( heal <= 0 )
heal = 1;
tstatus->hp = heal;
tstatus->sp -= tstatus->sp * ( 60 - 10 * skill_lv ) / 100;
clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
pc_revive((TBL_PC*)bl,heal,0);
clif_resurrection( *bl );