From bd3f24307e497caa0e209a1fdfde2dbabab0d0f1 Mon Sep 17 00:00:00 2001 From: Anton Simakov <67688115+GuardianDll@users.noreply.github.com> Date: Thu, 5 Sep 2024 08:58:02 +0200 Subject: [PATCH 1/2] fix you being able to "see" impossible shape when blind --- data/json/monster_special_attacks/spells.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/json/monster_special_attacks/spells.json b/data/json/monster_special_attacks/spells.json index 696dc475faf48..024e8b34c6092 100644 --- a/data/json/monster_special_attacks/spells.json +++ b/data/json/monster_special_attacks/spells.json @@ -703,7 +703,7 @@ { "type": "effect_on_condition", "id": "EOC_impossible_shape_attack", - "condition": { "and": [ "u_can_see", { "math": [ "u_madness", ">", "10" ] } ] }, + "condition": { "and": [ "npc_can_see", { "math": [ "u_madness", ">", "10" ] } ] }, "effect": [ { "u_add_effect": "nightmares", "duration": "18 hours" }, { "u_add_effect": "disrupted_sleep", "duration": "18 hours" }, From 3e8436ff905462c5ae72fd34c832f330c335a49d Mon Sep 17 00:00:00 2001 From: Anton Simakov <67688115+GuardianDll@users.noreply.github.com> Date: Thu, 5 Sep 2024 10:58:54 +0200 Subject: [PATCH 2/2] This one actually fixes it --- data/json/monster_special_attacks/spells.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/json/monster_special_attacks/spells.json b/data/json/monster_special_attacks/spells.json index 024e8b34c6092..41f99c604023c 100644 --- a/data/json/monster_special_attacks/spells.json +++ b/data/json/monster_special_attacks/spells.json @@ -703,7 +703,7 @@ { "type": "effect_on_condition", "id": "EOC_impossible_shape_attack", - "condition": { "and": [ "npc_can_see", { "math": [ "u_madness", ">", "10" ] } ] }, + "condition": { "and": [ { "or": [ "u_can_see", { "u_has_flag": "BLIND" } ] }, { "math": [ "u_madness", ">", "10" ] } ] }, "effect": [ { "u_add_effect": "nightmares", "duration": "18 hours" }, { "u_add_effect": "disrupted_sleep", "duration": "18 hours" },