def spell_stats(user):
    """
    Get's the player/boss' def, name and str.

    Useful as it's stored differently between bosses and players in a battle

    Returns
    -------
    Any
        float - The defence of the user.
        str - The name of the account.
        float - The defence of the account
    """
    # Get user stats for player/boss (as the data is stored differently)
    try:
        # Player
        u_def = user['account']['stats']['defense']
        u_name = user['user'].name
        u_str = user['account']['stats']['strength']
    except KeyError:
        # Boss
        u_def = user['stats']['defense']
        u_name = user['name']
        u_str = user['stats']['strength']

    return u_def, u_name, u_str