• R/O
  • HTTP
  • SSH
  • HTTPS

hengbandosx: Commit

The master and develop branches track hengband.

OS X development happens on the macos-1-6-2, macos-2-2-1, and macos-develop branches.


Commit MetaInfo

Revisioncd783e9a97ebe9380c3f9ff5d74979af69d6a37c (tree)
Time2021-05-09 01:23:35
Authoriks <iks3@user...>
CommiterGitHub

Log Message

Merge pull request #1057 from iks3/fix-monster-invulner-message

[Fix] 見えないときにモンスターの無敵発動時のメッセージが表示される #1034

Change Summary

Incremental Difference

--- a/src/mspell/mspell-status.cpp
+++ b/src/mspell/mspell-status.cpp
@@ -595,20 +595,22 @@ MonsterSpellResult spell_RF6_INVULNER(player_type *target_ptr, MONSTER_IDX m_idx
595595 _("%^sが何かを力強くつぶやいた。", "%^s mumbles powerfully."), _("%sは無傷の球の呪文を唱えた。", "%^s casts a Globe of Invulnerability."),
596596 _("%sは無傷の球の呪文を唱えた。", "%^s casts a Globe of Invulnerability."), !seen, TARGET_TYPE);
597597
598- MONRACE_IDX r_idx = m_ptr->r_idx;
599- GAME_TEXT m_name[MAX_NLEN];
600- monster_desc(target_ptr, m_name, m_ptr, MD_NONE);
601- switch (r_idx) {
602- case MON_MARIO:
603- case MON_LUIGI:
604- msg_format(_("%sはスターを取った!", "%^s got a star!"), m_name);
605- break;
606- case MON_DIAVOLO:
607- msg_print(_("『読める』………動きの『軌跡』が読める……", "'Read'......... I can read the 'trajectory' of movement..."));
608- break;
609- default:
610- msg_format(_("%sの身体がまばゆく輝き始めた!", "The body of %^s began to shine dazzlingly!"), m_name);
611- break;
598+ if (m_ptr->ml) {
599+ MONRACE_IDX r_idx = m_ptr->r_idx;
600+ GAME_TEXT m_name[MAX_NLEN];
601+ monster_desc(target_ptr, m_name, m_ptr, MD_NONE);
602+ switch (r_idx) {
603+ case MON_MARIO:
604+ case MON_LUIGI:
605+ msg_format(_("%sはスターを取った!", "%^s got a star!"), m_name);
606+ break;
607+ case MON_DIAVOLO:
608+ msg_print(_("『読める』………動きの『軌跡』が読める……", "'Read'......... I can read the 'trajectory' of movement..."));
609+ break;
610+ default:
611+ msg_format(_("%sの身体がまばゆく輝き始めた!", "The body of %^s began to shine dazzlingly!"), m_name);
612+ break;
613+ }
612614 }
613615
614616 if (!monster_invulner_remaining(m_ptr))
Show on old repository browser