public void setDebuff (int id){
        if (id == 0){           //stun
            cache = Data.stun;
            maxFrame = 6;
        }else if (id == 1){     //lightning
            cache = Data.air;
            maxFrame = 2;
        }else if (id == 2){     //freeze
            cache = Data.freeze;
            maxFrame = 2;
        }else if (id == 3){     //burn
            cache = Data.burn;
            maxFrame = 2;
        }else if (id == 4){
            cache = Data.stone;
            maxFrame = 2;
        }
        counter = 0;
        frame = 1;
        show = true;
    }