{
    "name": "§d§nLife Link",
    "description": "By sacrificing a tiny portion of it's life essence, the Lightweaver can form a healing link with an ally. Afterward, the Lightweaver feels a surge of energy!\n",
    "hidden": false,

    "badges": [
        {
            "type": "origins:keybind",
            "sprite": "origins:textures/gui/badge/active.png",
            "text": "Active ability, use with %s\nCooldown: 5s"
        }
    ],

    "type": "origins:multiple",
    "activate": {
        "type": "apoli:active_self",
        "entity_action": {
            "type": "origins:and",
            "actions": [
                {
                    "type": "apoli:area_of_effect",
                    "bientity_action": {
                        "type": "origins:and",
                        "actions": [
                            {
                                "type": "origins:actor_action",
                                "action": {
                                    "type": "origins:damage",
                                    "amount": 2,
                                    "source": {
                                        "name": "player",
                                        "magic": true
                                    }
                                }
                            },
                            {
                                "type": "origins:target_action",
                                "action": {
                                    "type": "origins:and",
                                    "actions": [
                                        {
                                            "type": "origins:heal",
                                            "amount": 6
                                        },
                                        {
                                            "type": "origins:play_sound",
                                            "sound": "minecraft:block.brewing_stand.brew",
                                            "volume": 1,
                                            "pitch": 1.4
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "bientity_condition": {
                        "type": "origins:or",
                        "conditions": [
                            {
                                "type": "origins:target_condition",
                                "condition": {
                                    "type": "origins:entity_type",
                                    "entity_type": "player"
                                }
                            },
                            {
                                "type": "origins:owner"
                            }
                        ]
                    },
                    "include_target": false,
                    "radius": 7
                },
                {
                    "type": "apoli:apply_effect",
                    "effect": {
                        "effect": "minecraft:speed",
                        "duration": 100,
                        "amplifier": 0,
                        "is_ambient": true,
                        "show_particles": false,
                        "show_icon": false
                    }
                }
            ]
        },
        "hud_render": {
            "should_render": true,
            "sprite_location": "origins:textures/gui/community/spiderkolo/resource_bar_02.png",
            "bar_index": 9
        },
        "key": {
            "key": "key.origins.secondary_active"
        },
        "cooldown": 100
    }
}