OSDN Git Service

[Fix] フェーズアウト状態(カジノ闘技場観戦)時にプレイヤーがテレポートアウェイ効果の影響そのものを受けないよう修正.
authorDeskull <61610939+sikabane-works@users.noreply.github.com>
Mon, 14 Jun 2021 11:42:16 +0000 (20:42 +0900)
committerDeskull <61610939+sikabane-works@users.noreply.github.com>
Mon, 14 Jun 2021 11:42:16 +0000 (20:42 +0900)
src/spell-kind/spells-teleport.cpp

index 4d5aa3d..81a9e34 100644 (file)
@@ -408,6 +408,9 @@ void teleport_player(player_type *creature_ptr, POSITION dis, BIT_FLAGS mode)
  */
 void teleport_player_away(MONSTER_IDX m_idx, player_type *target_ptr, POSITION dis, bool is_quantum_effect)
 {
+    if (target_ptr->phase_out)
+        return;
+
     const POSITION oy = target_ptr->y;
     const POSITION ox = target_ptr->x;