Skip to content

Commit

Permalink
Insight is cleared when using other martial arts
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Candlebury committed Nov 25, 2024
1 parent daebd7d commit e7263dc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions data/mods/Perk_melee/EOC/Insight_eocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"type": "effect_on_condition",
"recurrence": "1 seconds",
"condition": {
"and": [ { "u_has_flag": "MELEE_PERK_INSIGHT" }, { "x_in_y_chance": { "x": { "math": [ "u_val('perception')" ] }, "y": 20 } } ]
"and": [
{ "u_has_flag": "MELEE_PERK_INSIGHT" },
{ "u_using_martial_art": "style_none" },
{ "x_in_y_chance": { "x": { "math": [ "u_val('perception')" ] }, "y": 20 } }
]
},
"effect": [
{
Expand All @@ -19,7 +23,8 @@
],
"else": [ { "u_cast_spell": { "id": "perk_insight_spell" }, "targeted": true } ]
}
]
],
"false_effect": [ { "if": { "not": { "u_using_martial_art": "style_none" } }, "then": [ { "u_lose_effect": "perk_insight" } ] } ]
},
{
"id": "EOC_PERK_SPEND_INSIGHT",
Expand Down

0 comments on commit e7263dc

Please sign in to comment.