Sfoglia il codice sorgente

Corrected ShortWeaponDamageReturn behavior (#2744)

* Fixes #2685.
* Item bonus ShortWeaponDamageReturn should work in all cases.
Thanks to @kyeme and @zakudam!
Aleos 7 anni fa
parent
commit
333f0dddc8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/map/battle.cpp

+ 1 - 1
src/map/battle.cpp

@@ -6851,7 +6851,7 @@ int64 battle_calc_return_damage(struct block_list* bl, struct block_list *src, i
 	ssc = status_get_sc(src);
 
 	if (flag & BF_SHORT) {//Bounces back part of the damage.
-		if ( !status_reflect && sd && sd->bonus.short_weapon_damage_return ) {
+		if ( sd && sd->bonus.short_weapon_damage_return ) {
 			rdamage += damage * sd->bonus.short_weapon_damage_return / 100;
 			rdamage = i64max(rdamage,1);
 		} else if( status_reflect && sc && sc->count ) {