def burn(f1, m1):
    """If the user is burned and trying to use a physical move, return
    0.5, otherwise return 1, unless the user's ability is Guts, in
    which case also return 1.
    """
    if (('burn' in f1.status) and (f1.ability != 62) and
            (m1.damage_class_id == 2)):
        return 0.5

    else:
        return 1