{ "AbilityName": "Monster_Bookemon_ExtraLight", "AbilitySpecials": { "AS_MonsterEnterLightCount": { "Value": 0, "ValueType": "Integer" } }, "AbilityStacking": "Unique", "DefaultModifier": { "OnCustomEventReceived": [ { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Add", "Param": 1, "ParamName": "AS_MonsterEnterLightCount", "ParamType": "Integer", "Predicates": [ { "$type": "ByCustomEvent", "EventKey": "Bangboo_Bookemon_EnterLight" } ], "Target": "Self" }, { "$type": "ApplyModifier", "ModifierName": "LightExtraBuffModifier", "Predicates": [ { "$type": "ByAbilitySpecial", "CompareType": "GreaterEqual", "Param": 1, "ParamName": "AS_MonsterEnterLightCount" }, { "$type": "ByCustomEvent", "EventKey": "Bangboo_Bookemon_EnterLight" } ], "Target": "Self" }, { "$type": "SetAbilitySpecialAction", "ModifyFunction": "Add", "Param": -1, "ParamName": "AS_MonsterEnterLightCount", "ParamType": "Integer", "Predicates": [ { "$type": "ByCustomEvent", "EventKey": "Bangboo_Bookemon_ExitLight" } ], "Target": "Self" }, { "$type": "RemoveModifier", "ModifierName": "LightExtraBuffModifier", "Predicates": [ { "$type": "ByAbilitySpecial", "CompareType": "Equal", "Param": 0, "ParamName": "AS_MonsterEnterLightCount" }, { "$type": "ByCustomEvent", "EventKey": "Bangboo_Bookemon_ExitLight" } ], "Target": "Self" } ] }, "Modifiers": { "LightExtraBuffModifier": { "Duration": -1, "ModifierMixins": [ { "$type": "SmoothRecoverHPMixin", "IgnoreRatio": false, "PropertyItem": { "Amount": 5, "Percentage": 0.02, "PropertyModifyFunction": "Add" } } ], "ModifierStacking": "Unique" } } }