• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Révision27778efb1d9ab45d2a31bc1b1db69eb7842303b8 (tree)
l'heure2020-10-18 21:40:14
Auteurdeskull <deskull@user...>
Commiterdeskull

Message de Log

[Fix] #40514 effect_player_lite() と effect_player_dark() 内の盲目判定バグ修正. / Fixed blind status bug in effect_player_lite() and effect_player_dark().

Change Summary

Modification

--- a/src/effect/effect-player-resist-hurt.c
+++ b/src/effect/effect-player-resist-hurt.c
@@ -346,7 +346,7 @@ void effect_player_lite(player_type *target_ptr, effect_player_type *ep_ptr)
346346 {
347347 if (target_ptr->blind)
348348 msg_print(_("何かで攻撃された!", "You are hit by something!"));
349- if (!target_ptr->blind && !target_ptr->resist_blind && !check_multishadow(target_ptr)) {
349+ if (!target_ptr->blind && !target_ptr->resist_lite && !target_ptr->resist_blind && !check_multishadow(target_ptr)) {
350350 (void)set_blind(target_ptr, target_ptr->blind + randint1(5) + 2);
351351 }
352352
@@ -377,7 +377,7 @@ void effect_player_dark(player_type *target_ptr, effect_player_type *ep_ptr)
377377
378378 ep_ptr->dam = ep_ptr->dam * calc_dark_damage_rate(target_ptr, CALC_RAND) / 100;
379379
380- if (!target_ptr->blind && !target_ptr->resist_blind && !check_multishadow(target_ptr)) {
380+ if (!target_ptr->blind && !target_ptr->resist_dark && !target_ptr->resist_blind && !check_multishadow(target_ptr)) {
381381 (void)set_blind(target_ptr, target_ptr->blind + randint1(5) + 2);
382382 }
383383
Afficher sur ancien navigateur de dépôt.