public boolean fit(Unit user, Unit target, int userTeam){
        if(!targetUnit){
            System.out.println("Targeting : fit : Target did not fit as this targeting does not use a unit");
            return false;
        }
        else if(allies && target.team!=userTeam){
            System.out.println("Targeting : fit : Target did not fit as its on the same team as the caster and the targeting requires enemies");
            return false;
        }
        else if(enemies && target.team==userTeam){
            return false;
        }
        else return true;
    }