addHook("ThinkFrame", function()
    for player in players.iterate do
        if player.mo.skin ~= "xmasonic" then
            continue
        end

        if player.powers[pw_super] == 0 then
        player.charability = CA_THOK
        end

        if player.powers[pw_super] == 1 then
        player.charability = CA_SLOWFALL
        end

        if player.powers[pw_super] == 0 then
        player.charability2 = CA2_SPINDASH
        end

        if player.powers[pw_super] == 1 then
        player.charability2 = CA2_NONE
        end
    end
end)

addHook("ThinkFrame", function()
    for player in players.iterate do
        if player.mo.skin ~= "demosonic" then
            continue
        end

        if player.powers[pw_super] == 0 then
        player.charability = CA_THOK
        end

        if player.powers[pw_super] == 1 then
        player.charability = CA_SLOWFALL
        end

        if player.powers[pw_super] == 0 then
        player.charability2 = CA2_SPINDASH
        end

        if player.powers[pw_super] == 1 then
        player.charability2 = CA2_NONE
        end
    end
end)