aoxu
5/9/2015 - 3:03 AM

cooldown.lua

[34] = {
        id = 34, name = "3-B-1",
        levels = {
            [1] = {
                followAttack = {
                    [1] = {
                        trigger = {
                            condition = {"interval"},
                            cooldown = 1, interval = 3,
                        },
                        target = {
                            target = "pathCollision",
                        },
                        effect = {
                            effect = {"attack"},
                        },
                        number = {
                            calculation = {"attackAttribute"},
                            ratioValue = 1,
                        },
                        stop = {
                            condition = {"atOnce"},
                        },
                        followSpeed = 10, speed = 10, range = 6,
                    },
                    [2] = {
                        trigger = {
                            condition = {"onAttack", "random"},
                            probability = 1, cooldown = 8,
                        },
                        target = {
                            target = "boss",
                        },
                        effect = {
                            effect = {"debuff"},
                            debuff = "decreaseAttribute",
                            targetAttribute = "defense",
                        },
                        number = {
                            calculation = {"constant"},
                            baseValue = 0.3,
                        },
                        stop = {
                            condition = {"overTime"},
                            effectTime = 8,
                        },
                    },
                },
            },
        },
    },